We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddd219e commit 70c48dfCopy full SHA for 70c48df
springboot-actuator/README.md
@@ -0,0 +1,30 @@
1
+# springboot整合actuator
2
+
3
+Spring Boot执行器(Actuator)提供安全端点,用于监视和管理Spring Boot应用程序。 默认情况下,所有执行器端点都是安全的。
4
5
+## 导入依赖
6
7
+```java
8
+<!-- 执行器 -->
9
+<dependency>
10
+ <groupId>org.springframework.boot</groupId>
11
+ <artifactId>spring-boot-starter-actuator</artifactId>
12
+</dependency>
13
+```
14
15
+## application.yml
16
17
+management:
18
+ server:
19
+ port: 9001
20
+ endpoints:
21
+ web:
22
+ base-path: /actuator
23
+ exposure:
24
+ include: "*"
25
+ endpoint:
26
+ health:
27
+ show-details: always
28
29
30
+官网API:https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html
0 commit comments