public class ELKEnvironmentPreparedListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>, org.springframework.core.Ordered
| 构造器和说明 |
|---|
ELKEnvironmentPreparedListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getOrder()
当前监听器的启动顺序需要在日志配置监听器的前面,保证在日志文件初始化之前读取 application.yml 的配置。
|
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event) |
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>public int getOrder()
getOrder 在接口中 org.springframework.core.OrderedCopyright © 2025. All rights reserved.