BasicAuthenticationApplication.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:webworms 作者:
public
@Bean
AuthenticationProvider inMemProvider() {
    DaoAuthenticationProvider dap = new DaoAuthenticationProvider();
    dap.setPasswordEncoder(new BCryptPasswordEncoder());
    dap.setUserDetailsService(new InMemoryUserDetailsManager(Collections.singletonList(new User("user", "test", Collections.singletonList(new SimpleGrantedAuthority("API_CLIENT"))))));
    return dap;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号