Beancreationexception+NosuchBeandefinition exception

淺唱寂寞╮ 提交于 2019-12-01 08:43:22

Ad. 1. Spring creates userService bean with default name, as indicated in documentation.

Ad. 2. I'm not sue, sure, but perhaps GenericRepositoryImpl is outside of com.test.tm package? If yes, then specify additional @ComponentScan annotation with proper package declaration ie.@ComponentScan("com.test.utils"), or - if You use Boot 1.3+ - modify @SpringBootApplication(scanBasePackages={"com.test.utils","com.test.tm"})

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!