07 2021 档案

摘要:import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.C 阅读全文
posted @ 2021-07-25 16:58 xl4ng 阅读(51) 评论(0) 推荐(0) 编辑
摘要:@Configuration public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private UserDetailsService userDetailsService; @Override 阅读全文
posted @ 2021-07-24 20:20 xl4ng 阅读(320) 评论(0) 推荐(0) 编辑
摘要:第一种方式:通过配置文件 spring: security: user: name: root password: root 第二种方式:通过配置类 @Configuration public class SecurityConfig extends WebSecurityConfigurerAda 阅读全文
posted @ 2021-07-24 16:35 xl4ng 阅读(1299) 评论(0) 推荐(0) 编辑