spring_reference/V. Spring Boot Actuator/47.1. Extend configuration.md

9 lines
298 B
Markdown
Raw Permalink Normal View History

### 47.1. 扩展属性
你需要激活`META-INF/spring.factories`文件里的listener(s)
```java
org.springframework.context.ApplicationListener=\
org.springframework.boot.actuate.system.ApplicationPidFileWriter,
org.springframework.boot.actuate.system.EmbeddedServerPortFileWriter
```