0 环境 系统:win10 1 正文 https://stackoverflow.com/questions/44474367/field-in-com-xxx-required-a-bean-of-type-that-could-not-be-found 没有解决我的问题 搜了其他人的解释 说是包错误什么的 我看了一下 包没有问题 那就是bean错误 debug了一下 发现我直接copy的类名(类如User) 开头小写即可(user) 相关文章: 2021-11-25 2021-10-13 2021-09-11 2022-12-23 2021-05-23 2022-12-23 2022-12-23 2021-07-01