随笔分类 -  springboot

摘要:1、异步任务 开启 @SpringBootApplication @EnableAsync public class Demo14Application { public static void main(String[] args) { SpringApplication.run(Demo14Ap 阅读全文
posted @ 2022-12-20 12:08 max_yan 阅读(144) 评论(0) 推荐(0) 编辑
摘要:1、依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.7.0</version> </dependency> <dependency> <gro 阅读全文
posted @ 2022-12-19 23:00 max_yan 阅读(16) 评论(0) 推荐(0) 编辑
摘要:1、依赖 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.10.0</version> </dependency> 2、使用 <div shiro:ha 阅读全文
posted @ 2022-12-19 11:39 max_yan 阅读(16) 评论(0) 推荐(0) 编辑
摘要:shiroConfig添加请求拦截 public ShiroFilterFactoryBean shiroFilterFactoryBean(@Qualifier("securityManager") DefaultWebSecurityManager securityManager){ Shiro 阅读全文
posted @ 2022-12-19 10:55 max_yan 阅读(19) 评论(0) 推荐(0) 编辑
摘要:1、依赖 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.10.0</version> </dependency> 2、配置类 public class 阅读全文
posted @ 2022-12-18 21:38 max_yan 阅读(26) 评论(0) 推荐(0) 编辑
摘要:1、依赖 org.springframework.boot spring-boot-starter-security 2、认证与授权 @Configuration public class SecurityConfig extends WebSecurityConfigurerAdapter { / 阅读全文
posted @ 2022-12-18 19:08 max_yan 阅读(12) 评论(0) 推荐(0) 编辑

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