title: Could not instantiate bean class: No default constructor found; nested exception is java.lang.NoSuchMethodException
body: <p>I am trying to <code>@Autowired</code> a class which is a simple class, without Annotations, is just a class which has some calculation. However when I try to <code>@Autowired</code> that class, in my controller I get the following error: </p>
  
  <p>Controller:</p>
  
  <pre><code>@Controller
  public class LeituraController extends HemisphereController {
  
  private static final String VIEW = "calculation/index";
  
  @Autowired
  private MyClass evapo;
  
  @RequestMapping(value = "/request", method = RequestMethod.GET)
  @SuppressWarnings("unchecked")
  public ModelAndView leituras() {
      ModelAndView view = new ModelAndView(VIEW);
      Double valorMax = evapo.calculation();
      return view;
  }}
  </code></pre>
  
  <p>Example of class:</p>
  
  <pre><code>public class MyClass {
  
  public Double calculation(){
         //implementation
      }
  
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private net.pontoall.hemisphere.core.calculo.evaportranspiracao.MyClass net.pontoall.hemisphere.controller.LeituraController.evapo; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [net.pontoall.hemisphere.core.calculo.evaportranspiracao.MyClass] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:513)
  at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:92)
  at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
  ... 21 more
   Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [net.pontoall.hemisphere.core.calculo.evaportranspiracao.MyClass] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:948)
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:817)
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:731)
  at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:485)
  ... 23 more
  </code></pre>
  
  <p>Anybody could help me? Thanks.</p>