Error creating bean with name 'unMblTotController': implantation failure

 

Today new young man, into the company to do the project, then built their own package, the following error

y.UnsatisfiedDependencyException: Error creating bean with name 'unMblTotController': 
Unsatisfied dependency expressed through field 'dataService'; nested exception is org.springframework.beans.
factory.UnsatisfiedDependencyException: Error creating bean with name 'unMblTotServiceImpl': Unsatisfied dependency expressed
 through field 'unMblTotMapper'; 
 nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency 
 [com.yd.ydsetl.unmbl.mapper.UnMblTotMapper]: expected at least 1 bean which qualifies as autowire candidate.
Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

False consciousness, controller, service, dao injection fails,

It can explain the problem on the configuration, nothing to do with the code

May know the problem should be scanned on the package, there is a problem named

We can find

spring-mvc.xml or spring.xml. There are spring-dao.xml file to view the scan packages, whether there are related issues,

New brother, fool the compiler, but at run time this error, the code is not explained, but related configuration issues,

 

Guess you like

Origin www.cnblogs.com/xiufengchen/p/11309083.html