![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
SpringBoot的学习资料
三更、
这个作者很懒,什么都没留下…
展开
-
springboot任务的异步处理
文章目录说明:springboot处理异步任务:正常处理异步任务:HelloServiceHelloController正常的启动类springboot任务的异步处理HelloController,前端不变@EnableAsync启动类 说明: 在添加开启异步处理业务的时候,controller层调用service层返回数据为null; springboot处理异步任务: 在异步方法上面添加一个@Async注解 在启动类上面天剑一个@EnableAsync开启异步功能 正常处理异步任务: HelloSe原创 2021-10-23 21:41:28 · 186 阅读 · 0 评论 -
springboot的相关配置
文章目录端口属性值的注入 springboot的配置文件必须命名为application 端口 多环境配置 server: port: 8080 spring: profiles: DEV --- server: port: 8081 spring: profiles: TEST --- server: port: 8082 spring: profiles: PROD --- server: port: 8083 spring: profiles: SIT --- s原创 2021-10-17 18:34:49 · 78 阅读 · 0 评论 -
Springboot配置Swagger
文章目录 maven <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependenc原创 2021-10-18 23:36:43 · 117 阅读 · 0 评论