广告。1.
userService如文档所示,Spring 使用默认名称创建bean 。
广告。2.我不起诉,但是也许
GenericRepositoryImpl不在
com.test.tm包裹内?如果是,则
@ComponentScan使用正确的包声明指定其他注释,即。
@ComponentScan("com.test.utils"),或者-
如果您使用的是Boot
1.3+-修改
@SpringBootApplication(scanbasePackages={"com.test.utils","com.test.tm"})
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)