AuthenticationManager could not be found

来源:5-7 开发微信登录

慕神0438126

2019-07-08

在ImoocAuthorizationServerConfig中注入了private AuthenticationManager authenticationManager,这是一个接口,没找到实现的地方,我将这部分(为app中实现微信一键登录功能)整合到我的代码中时报(开发工具为idea) type ‘org.springframework.security.authentication.AuthenticationManager’ that could not be found.
网上看相关资料,好像spring boot 2.x之后就不能用上面直接注入的形式了
请问这这部分该怎么实现

写回答

1回答

JoJo

2019-07-15

请参考WebSecurityConfigurerAdapter类的public 的 authenticationManagerBean()方法的注解。

0
1
慕神0438126
非常感谢!
2019-07-26
共1条回复

Spring Security技术栈开发企业级认证与授权

Spring Security技术栈,REST风格开发常见接口,独立开发认证授权模块保证REST服务安全

2662 学习 · 1561 问题

查看课程