9 lines
298 B
Markdown
9 lines
298 B
Markdown
|
### 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
|
|||
|
```
|