随笔分类 -  SpringBoot

摘要:Spring Security是一个能够为基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架。它提供了一组可以在Spring应用上下文中配置的Bean,充分利用了Spring IoC,DI(控制反转Inversion of Control ,DI:Dependency Inje 阅读全文
posted @ 2022-10-12 13:00 不如赐场梦给我 阅读(47) 评论(0) 推荐(0) 编辑
摘要:@EnableWebSecuritypublic class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exce 阅读全文
posted @ 2022-10-12 11:12 不如赐场梦给我 阅读(47) 评论(0) 推荐(0) 编辑
摘要:@Controllerpublic class DruidConfig { @ConfigurationProperties(prefix = "spring.datasource") @Bean public DataSource druidDataSource(){ return new Dru 阅读全文
posted @ 2022-10-11 20:11 不如赐场梦给我 阅读(148) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示