When SSM integration, dao can not be injected into the service

Dao given as shown, could not find the corresponding bean

 

 

Find out the reasons, bookDao the bean exists, we found dao inject dynamic implementation

 

 

DAO interface packet modification necessary to scan path, wherein that the service also includes

 

 

After editing, bookDao still being given, but it did not happen to run tomcat error, indicating a successful injection.

 

Guess you like

Origin www.cnblogs.com/alanchenjh/p/12316776.html