
Consider defining a bean of type ‘com.XXX‘ in your configuration.
Consider defining a bean of type 'com.XXX‘ in your configuration. 1、错误截图:
2、原因分析:在配置中找不到“COM.XXX”类型的bean @Component在默认情况下只能扫描与控制器在同一个包下以及其子包下的@Component注解,而扫描不到jwtUtil类的原因是缺少了@Component注解
3、问题解决:在jwtUtil类中添加@Component注解
👁️ 阅读量:0
© 版权声明:本文《Consider defining a bean of type ‘com.XXX‘ in your configuration.》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686555241a290744.html。