8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 239798f + d325262 commit f2645b2Copy full SHA for f2645b2
star/ReadMe.md
@@ -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
+## Spring Boot中集成Swagger UI
+ 1.添加依赖;
+ 2.编写config(参考SwaggerConfig.java);
+ 3.增加接口和参数的自定义说明(参考UserController.java);
+ 4.访问: http://localhost:8080/swagger-ui.html
6
7
-2.如何使用定时器
8
- a.启动类添加注解@EnableScheduling
9
- b.需要定时执行的方法上添加注解@Scheduled,并且配置定时器执行的频率
+## SpringBoot中如何使用定时器
+ 1.启动类添加注解@EnableScheduling;
+ 2.需要定时执行的方法上添加注解@Scheduled,并且配置定时器执行的频率。
10
+
11
+## SpringBoot中如何使用事件
12
+ 1.定义事件,继承ApplicationEvent类;
13
+ 2.监听事件,使用两个注解:@Async和@EventListener。
0 commit comments