title: Error creating bean with name 'employeeController': Injection of autowired dependencies failed
body: <p>I tried for Configuration with MvcConfiguration.java as Dispatcher file.But it throw errors while creating bean for controller and DAO file.</p>
  
  <p>I know there are lots of question regarding this error on stackoverflow.
  But I'm not able to solve and stuck in it.</p>
  
  <p>Following are files in which I found below errors.</p>
  
  <p><strong>EmployeeController.java</strong></p>
  
  <pre><code>package com.jwt.controller;
  import java.io.IOException;
  import java.util.List;
  import javax.servlet.http.HttpServletRequest;
  import org.jboss.logging.Logger;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.ModelAttribute;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  import org.springframework.web.servlet.ModelAndView;
  import com.jwt.model.Employee;
  import com.jwt.service.EmployeeService;
  
  @Controller
  public class EmployeeController {
  
      private static final Logger logger = Logger
              .getLogger(EmployeeController.class);
  
      public EmployeeController() {
          System.out.println("EmployeeController()");
      }
  
      @Autowired
      private EmployeeService employeeService;
  
      @RequestMapping(value = "/")
      public ModelAndView listEmployee(ModelAndView model) throws IOException {
          List&lt;Employee&gt; listEmployee = employeeService.getAllEmployees();
          model.addObject("listEmployee", listEmployee);
          model.setViewName("home");
          return model;
      }
  
      @RequestMapping(value = "/newEmployee", method = RequestMethod.GET)
      public ModelAndView newContact(ModelAndView model) {
          Employee employee = new Employee();
          model.addObject("employee", employee);
          model.setViewName("EmployeeForm");
          return model;
      }
  
      @RequestMapping(value = "/saveEmployee", method = RequestMethod.POST)
      public ModelAndView saveEmployee(@ModelAttribute Employee employee) {
          if (employee.getId() == 0) { // if employee id is 0 then creating the
              // employee other updating the employee
              employeeService.addEmployee(employee);
          } else {
              employeeService.updateEmployee(employee);
          }
          return new ModelAndView("redirect:/");
      }
  
      @RequestMapping(value = "/deleteEmployee", method = RequestMethod.GET)
      public ModelAndView deleteEmployee(HttpServletRequest request) {
          int employeeId = Integer.parseInt(request.getParameter("id"));
          employeeService.deleteEmployee(employeeId);
          return new ModelAndView("redirect:/");
      }
  
      @RequestMapping(value = "/editEmployee", method = RequestMethod.GET)
      public ModelAndView editContact(HttpServletRequest request) {
          int employeeId = Integer.parseInt(request.getParameter("id"));
          Employee employee = employeeService.getEmployee(employeeId);
          ModelAndView model = new ModelAndView("EmployeeForm");
          model.addObject("employee", employee);
  
          return model;
      }
  
  }
  </code></pre>
  
  <p>pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!DOCTYPE project PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0 dtd"&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                          http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.jwt.spring&lt;/groupId&gt;
  
  &lt;artifactId&gt;SpringMVCHibernateCRUD&lt;/artifactId&gt;
  
  &lt;packaging&gt;war&lt;/packaging&gt;
  
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;name&gt;SpringMVCHibernateCRUD Maven Webapp&lt;/name&gt;
  
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
  &lt;!-- Specifying the Versions of Spring, Hiberante, MySQL etc --&gt;
  
  &lt;properties&gt;
  &lt;spring.version&gt;4.1.6.RELEASE&lt;/spring.version&gt;
  &lt;hibernate.version&gt;4.3.8.Final&lt;/hibernate.version&gt;
  &lt;mssql.version&gt;4.0&lt;/mssql.version&gt;
  &lt;junit-version&gt;4.11&lt;/junit-version&gt;
  &lt;servlet-api-version&gt;3.1.0&lt;/servlet-api-version&gt;
  &lt;jsp-version&gt;2.2.1&lt;/jsp-version&gt;
  &lt;jstl-version&gt;1.2&lt;/jstl-version&gt;
  &lt;java.version&gt;1.7&lt;/java.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
  &lt;version&gt;4.1.6.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
  &lt;version&gt;4.1.6.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
  &lt;version&gt;4.1.6.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
  &lt;version&gt;4.1.6.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
  &lt;version&gt;4.1.6.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
  &lt;version&gt;4.1.6.RELEASE&lt;/version&gt;
  &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;!-- Hibernate 4 dependencies --&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
  &lt;version&gt;4.3.8.Final&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate-c3p0&lt;/artifactId&gt;
  &lt;version&gt;4.3.8.Final&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!--MSSQL Connector --&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;com.microsoft.sqlserver&lt;/groupId&gt;
  &lt;artifactId&gt;mssql-jdbc&lt;/artifactId&gt;
  &lt;version&gt;6.1.0.jre8&lt;/version&gt;
  &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;!-- Servlet and JSP --&gt; 
  
  &lt;dependency&gt;
  &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
  &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
  &lt;version&gt;3.1.0&lt;/version&gt;
  &lt;scope&gt;provided&lt;/scope&gt;
  
  &lt;/dependency&gt;
  
  
  &lt;dependency&gt;
  &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
  &lt;artifactId&gt;javax.servlet.jsp-api&lt;/artifactId&gt;
  &lt;version&gt;2.2.1&lt;/version&gt;
  &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;!-- JSTL dependency --&gt;
  
  
  &lt;!-- https://mvnrepository.com/artifact/javax.servlet/jstl --&gt;
  
  
  
  &lt;dependency&gt;
  &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
  &lt;artifactId&gt;jstl&lt;/artifactId&gt;
  &lt;version&gt;1.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- JUnit --&gt;
  
  
  
  &lt;dependency&gt;
  &lt;groupId&gt;junit&lt;/groupId&gt;
  &lt;artifactId&gt;junit&lt;/artifactId&gt;
  &lt;version&gt;4.11&lt;/version&gt;
  &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  
  &lt;build&gt;
  &lt;finalName&gt;SpringMVCHibernateCRUD&lt;/finalName&gt;
  &lt;plugins&gt;
  
  
  &lt;plugin&gt;
  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
  
  
  &lt;configuration&gt;
  
  
  &lt;includes&gt;
  
  &lt;include&gt;**/*Tests.java&lt;/include&gt;
  
  &lt;/includes&gt;
  
  &lt;/configuration&gt;
  
  &lt;/plugin&gt;
  
  
  &lt;plugin&gt;
  
  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
  
  &lt;version&gt;2.3.2&lt;/version&gt;
  
  
  &lt;configuration&gt;
  &lt;source&gt;${java.version}&lt;/source&gt;
  &lt;target&gt;${java.version}&lt;/target&gt;
  &lt;/configuration&gt;
  
  &lt;/plugin&gt;
  
  &lt;/plugins&gt;
  
  &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>MvcConfiguration.java</strong></p>
  
  <pre><code>package com.jwt;
  
  import javax.sql.DataSource;
  
  import com.jwt.controller.EmployeeController;
  import com.jwt.dao.EmployeeDAO;
  import com.jwt.dao.EmployeeDAOImpl;
  
  import javafx.scene.control.Alert;
  
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.ComponentScan;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.jdbc.datasource.DriverManagerDataSource;
  import org.springframework.web.servlet.ViewResolver;
  import org.springframework.web.servlet.config.annotation.EnableWebMvc;
  import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
  import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
  import org.springframework.web.servlet.view.InternalResourceViewResolver;
  
  @Configuration
  @ComponentScan(basePackages="com.jwt")
  @EnableWebMvc
  
  public class MvcConfiguration extends WebMvcConfigurerAdapter{
  
      public void demo() {
          System.out.println("in configuration...");
      }
  
      @Bean
      public ViewResolver getViewResolver(){
          System.out.println("in configuration...");
          InternalResourceViewResolver resolver = new InternalResourceViewResolver();
          resolver.setPrefix("/WEB-INF/views/");
          resolver.setSuffix(".jsp");
          return resolver;
  
      }
  
      @Override
      public void addResourceHandlers(ResourceHandlerRegistry registry) {
          registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
      }
  
      @Bean
      public DataSource getDataSource() {
          System.out.println("in datasoure");
          DriverManagerDataSource dataSource = new DriverManagerDataSource();
          dataSource.setDriverClassName("com.microsoft.sqlserver.jdbc.SQLServerDriver");      
          dataSource.setUrl("jdbc:sqlserver://localhost:1433\\MSSQLSERVER;databaseName=Demo");
          dataSource.setUsername("gcflex_user");
          dataSource.setPassword("Gcas1234!");
  
          return dataSource;
      }
  
      @Bean
      public EmployeeDAO getContactDAO() {
          return new EmployeeDAOImpl(getDataSource());
      }
  
      @Bean
      public EmployeeController getEmployeeController() {
          return new EmployeeController();
  
      }
  
  }
  </code></pre>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
  &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
            http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
      version="3.0"&gt;
  
      &lt;display-name&gt;Spring MVC Hibernate CRUD Example&lt;/display-name&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;SpringDispatcher&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;contextClass&lt;/param-name&gt;
              &lt;param-value&gt; org.springframework.web.context.support.AnnotationConfigWebApplicationContext &lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;com.jwt.MvcConfiguration&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;SpringDispatcher&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;  
  
      &lt;session-config&gt;
          &lt;session-timeout&gt;30&lt;/session-timeout&gt;
      &lt;/session-config&gt;
  
  &lt;/web-app&gt; 
  </code></pre>
  
  <p><strong>EDIT :-</strong></p>
  
  <p>EmployeeService.java</p>
  
  <pre><code>package com.jwt.service;
  
  import java.util.List;
  
  import com.jwt.model.Employee;
  
  public interface EmployeeService {
  
      public void addEmployee(Employee employee);
  
      public List&lt;Employee&gt; getAllEmployees();
  
      public void deleteEmployee(Integer employeeId);
  
      public Employee getEmployee(int employeeid);
  
      public Employee updateEmployee(Employee employee);
  }
  </code></pre>
  
  <p>EmployeeServiceImpl.java</p>
  
  <pre><code>package com.jwt.service;
  
  import java.util.List;
  
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Service;
  import org.springframework.transaction.annotation.Transactional;
  
  import com.jwt.dao.EmployeeDAO;
  import com.jwt.model.Employee;
  
  @Service
  @Transactional
  public class EmployeeServiceImpl implements EmployeeService {
  
      @Autowired
      private EmployeeDAO employeeDAO;
  
      @Override
      @Transactional
      public void addEmployee(Employee employee) {
          employeeDAO.addEmployee(employee);
      }
  
      @Override
      @Transactional
      public List&lt;Employee&gt; getAllEmployees() {
          return employeeDAO.getAllEmployees();
      }
  
      @Override
      @Transactional
      public void deleteEmployee(Integer employeeId) {
          employeeDAO.deleteEmployee(employeeId);
      }
  
      public Employee getEmployee(int empid) {
          return employeeDAO.getEmployee(empid);
      }
  
      public Employee updateEmployee(Employee employee) {
          // TODO Auto-generated method stub
          return employeeDAO.updateEmployee(employee);
      }
  
      public void setEmployeeDAO(EmployeeDAO employeeDAO) {
          this.employeeDAO = employeeDAO;
      }
  
  }
  </code></pre>
  
  <p><strong>Error Log :-</strong></p>
  
  <blockquote>
    <p>org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'employeeController': Injection of autowired
    dependencies failed; nested exception is
    org.springframework.beans.factory.BeanCreationException: Could not
    autowire field: private com.jwt.service.EmployeeService
    com.jwt.controller.EmployeeController.employeeService; nested
    exception is org.springframework.beans.factory.BeanCreationException:
    Error creating bean with name 'employeeServiceImpl': Injection of
    autowired dependencies failed; nested exception is
    org.springframework.beans.factory.BeanCreationException: Could not
    autowire field: private com.jwt.dao.EmployeeDAO
    com.jwt.service.EmployeeServiceImpl.employeeDAO; nested exception is
    org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'employeeDAOImpl' defined in file [D:\Macron
    Workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\SpringMVCHibernateCRUD\WEB-INF\classes\com\jwt\dao\EmployeeDAOImpl.class]:
    Instantiation of bean failed; nested exception is
    org.springframework.beans.BeanInstantiationException: Failed to
    instantiate [com.jwt.dao.EmployeeDAOImpl]: No default constructor
    found; nested exception is java.lang.NoSuchMethodException:
    com.jwt.dao.EmployeeDAOImpl.()  at
    org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
    at
    org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
    at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
    at
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
    at
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)
    at
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)
    at
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)
    at
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
    at
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)  at
    org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1269)
    at
    org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1182)
    at
    org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1072)
    at
    org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5362)
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5660)
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at
    org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1700)
    at
    org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1690)
    at java.util.concurrent.FutureTask.run(Unknown Source)  at
    java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  at
    java.lang.Thread.run(Unknown Source) Caused by:
    org.springframework.beans.factory.BeanCreationException: Could not
    autowire field: private com.jwt.service.EmployeeService
    com.jwt.controller.EmployeeController.employeeService; nested
    exception is org.springframework.beans.factory.BeanCreationException:
    Error creating bean with name 'employeeServiceImpl': Injection of
    autowired dependencies failed; nested exception is
    org.springframework.beans.factory.BeanCreationException: Could not
    autowire field: private com.jwt.dao.EmployeeDAO
    com.jwt.service.EmployeeServiceImpl.employeeDAO; nested exception is
    org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'employeeDAOImpl' defined in file [D:\Macron
    Workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\SpringMVCHibernateCRUD\WEB-INF\classes\com\jwt\dao\EmployeeDAOImpl.class]:
    Instantiation of bean failed; nested exception is
    org.springframework.beans.BeanInstantiationException: Failed to
    instantiate [com.jwt.dao.EmployeeDAOImpl]: No default constructor
    found; nested exception is java.lang.NoSuchMethodException:
    com.jwt.dao.EmployeeDAOImpl.()  at
    org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
    at
    org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
    at
    org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
    ... 29 more Caused by:
    org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'employeeServiceImpl': Injection of autowired
    dependencies failed; nested exception is
    org.springframework.beans.factory.BeanCreationException: Could not
    autowire field: private com.jwt.dao.EmployeeDAO
    com.jwt.service.EmployeeServiceImpl.employeeDAO; nested exception is
    org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'employeeDAOImpl' defined in file [D:\Macron
    Workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\SpringMVCHibernateCRUD\WEB-INF\classes\com\jwt\dao\EmployeeDAOImpl.class]:
    Instantiation of bean failed; nested exception is
    org.springframework.beans.BeanInstantiationException: Failed to
    instantiate [com.jwt.dao.EmployeeDAOImpl]: No default constructor
    found; nested exception is java.lang.NoSuchMethodException:
    com.jwt.dao.EmployeeDAOImpl.()  at
    org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
    at
    org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)</p>
  </blockquote>