补充健康检查信息
This commit is contained in:
47
README.MD
47
README.MD
@@ -13,9 +13,52 @@
|
||||
|
||||
默认暴露端口:8080
|
||||
|
||||
健康检查路径:
|
||||
健康检查路径:`/actuator/beans`、`/actuator/info`
|
||||
|
||||
样例接口访问API
|
||||
**请求样例**
|
||||
|
||||
```
|
||||
GET http://localhost:8080/actuator/info
|
||||
```
|
||||
|
||||
返回结果
|
||||
|
||||
```json
|
||||
{
|
||||
"app": {
|
||||
"author": "F嘉阳",
|
||||
"encoding": "UTF-8"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 样例接口
|
||||
|
||||
**请求URL:**
|
||||
|
||||
```
|
||||
GET/POST/PUT/DELETE http://localhost:8080/print/{content}
|
||||
```
|
||||
|
||||
**参数:**
|
||||
|
||||
| 参数名 | 类型 | 必选 | 内容 | 说明 |
|
||||
| :------ | ---- | :--- | :--- | -------- |
|
||||
| content | 字符 | 否 | info | 输出内容 |
|
||||
|
||||
**请求样例**
|
||||
|
||||
```
|
||||
http://localhost:8080/print/info
|
||||
```
|
||||
|
||||
|
||||
|
||||
**返回示例**
|
||||
|
||||
```json
|
||||
hello , info
|
||||
```
|
||||
|
||||
|
||||
@@ -7,4 +7,8 @@ management:
|
||||
include: "*"
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
show-details: always
|
||||
info:
|
||||
app:
|
||||
author: F嘉阳
|
||||
encoding: @project.build.sourceEncoding@
|
||||
Reference in New Issue
Block a user