0
点赞
收藏
分享

微信扫一扫

spring boot Could not autowired. Not beans of

开源分享 2022-07-12 阅读 58

 

autowired WebSecurityConfigurerAdapter 中注册 过滤器时报下面错误:

not autowired. Not beans of "XXXFilter" type

解决方法:

是在过滤器类上加一个 @Component



举报

相关推荐

0 条评论