Update and rename 40.4. Custom application info information to 40.4. Custom application info information.md
parent
1931523f1b
commit
dbb02a1499
|
@ -0,0 +1,8 @@
|
|||
### 40.4. 自定义应用info信息
|
||||
|
||||
通过设置Spring属性info.*,你可以定义info端点暴露的数据。所有在info关键字下的Environment属性都将被自动暴露。例如,你可以将下面的配置添加到application.properties:
|
||||
```java
|
||||
info.app.name=MyService
|
||||
info.app.description=My awesome service
|
||||
info.app.version=1.0.0
|
||||
```
|
Loading…
Reference in New Issue