![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
对三四个二
找不到工作就当健身教练了
展开
-
springboot集成 异步任务与定时执行任务
异步任务在主程序开启异步@EnableAsync异步测试类@Servicepublic class AsyncService { //告诉spring这是一个异步的方法 @Async public void hello(){ try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace();原创 2021-05-25 22:19:20 · 73 阅读 · 0 评论 -
springboot 集成邮件发送
导入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId></dependency>配置文件中配置服务器spring.mail.username=@qq.comspring.mail.password=hdqgpoow原创 2021-05-25 22:08:43 · 56 阅读 · 0 评论 -
springboot集成swagger
导入依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency>访问:http://localhost:8080/原创 2021-05-25 19:47:04 · 63 阅读 · 0 评论 -
springboot配置shrio
1导入依赖<dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.7.1</version> </dependency>配置shrio配置类 以及配置类中的UserRealm@C原创 2021-05-24 22:43:17 · 101 阅读 · 0 评论 -
Spring-boot 安全Spring Security
Spring Security相当于是一个springboot内部集成的一个安全框架Spring Security 是针对Spring项目的安全框架,也是Spring Boot底层安全模块默认的技术选型,他可以实现强大的Web安全控制,对于安全控制,我们仅需要引入 spring-boot-starter-security 模块,进行少量的配置,即可实现强大的安全管理!记住几个类∶WebSecurityConfigurerAdapter∶ 自定义Security策略AuthenticationManage原创 2021-05-23 17:14:14 · 124 阅读 · 1 评论