8000 Merge branch 'master' of https://github.com/williamjava/spring_boot_p… · williamjava/spring_boot_practise@f2645b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f2645b2

Browse files
committed
2 parents 239798f + d325262 commit f2645b2

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

star/ReadMe.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
1.Spring Boot中集成Swagger UI的几个步骤
2-
a.添加依赖
3-
b.编写config(参考SwaggerConfig.java)
4-
c.增加接口和参数的自定义说明(参考UserController.java)
5-
d.访问: http://localhost:8080/swagger-ui.html
1+
## Spring Boot中集成Swagger UI
2+
1.添加依赖
3+
2.编写config(参考SwaggerConfig.java)
4+
3.增加接口和参数的自定义说明(参考UserController.java)
5+
4.访问: http://localhost:8080/swagger-ui.html
66

7-
2.如何使用定时器
8-
a.启动类添加注解@EnableScheduling
9-
b.需要定时执行的方法上添加注解@Scheduled,并且配置定时器执行的频率
7+
## SpringBoot中如何使用定时器
8+
1.启动类添加注解@EnableScheduling;
9+
2.需要定时执行的方法上添加注解@Scheduled,并且配置定时器执行的频率。
10+
11+
## SpringBoot中如何使用事件
12+
1.定义事件,继承ApplicationEvent类;
13+
2.监听事件,使用两个注解:@Async和@EventListener。

0 commit comments

Comments
 (0)
0