Skip to content

Commit 70c48df

Browse files
committed
执行器readme
1 parent ddd219e commit 70c48df

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

springboot-actuator/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)