会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lin-07
博客园
首页
新随笔
新文章
联系
订阅
管理
2023年2月24日
Field userService in com.lin.hms.controller.LogController required a bean of type 'org.lin.hms.service.UserService' that could not be found.
摘要: 需要一个bean但找不到 解决 我们在controller使用的service没有注入spring容器,那么我们可以在启动类上,加上包扫描注解,让这个bean所在的包能扫描到: @ComponentScan(basePackages = {"org.lin.hms.service"})
阅读全文
posted @ 2023-02-24 18:10 阿霖找BUG
阅读(329)
评论(0)
推荐(0)