admin管理员组文章数量:1794759
Consider defining a bean of type ‘com.nclg.mall.service.AdminService‘ in your configuration.
问题描述
使用spring boot分模块开发时启动application出现错误
Consider defining a bean of type 'com.nclg.mall.service.AdminService' in your configuration. 原因spring boot默认只扫描application启动器所在的包及其子包,分模块的包不在同一个包下
解决指定spring boot应该扫描哪些包
@SpringBootApplication(scanBasePackages = {"com.nclg.mall.api", "com.nclg.mall.db","com.nclg.mall.service"})本文标签: typenclgdefiningbeanAdminService
版权声明:本文标题:Consider defining a bean of type ‘com.nclg.mall.service.AdminService‘ in your configuration. 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686552575a81058.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论