A component required a bean named xxx that could not be found. Action: Consider defining

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)

猜你喜欢

转载自www.cnblogs.com/my-ordinary/p/11830518.html