title: No default constructor found; nested exception is java.lang.NoSuchMethodException with Spring MVC?
body: <p>I am working with Spring MVC controller project. Below is my Controller and I have a constructor declared which I am specifically using for testing purpose.</p>
  
  <pre><code>@Controller
  public class TestController {
  
      private static KeeperClient testClient = null;
  
      static {
  
      // some code here
  
      }
  
      /**
       * Added specifically for unit testing purpose.
       * 
       * @param testClient
       */
      public TestController(KeeperClient testClient) {
          TestController.testClient = testClient;
      }
  
      // some method here
  
  }
  </code></pre>
  
  <p>Whenever I am starting the server, I am getting below exception - </p>
  
  <pre><code>No default constructor found; nested exception is java.lang.NoSuchMethodException:
  </code></pre>
  
  <p>But if I remove <code>TestController</code> constructor then it works fine without any problem. What wrong I am doing here?</p>
  
  <p>But if I add this default constructor then it starts working fine -</p>
  
  <pre><code>    public TestController() {
  
      }
  </code></pre>