public class ConfigInitListener extends ContextInitializedListener implements org.springframework.core.Ordered
当spring装配好配置后,就去数据库读constants
| 构造器和说明 |
|---|
ConfigInitListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
eventCallback(org.springframework.boot.context.event.ApplicationContextInitializedEvent event) |
int |
getOrder() |
onApplicationEventpublic int getOrder()
getOrder 在接口中 org.springframework.core.Orderedpublic void eventCallback(org.springframework.boot.context.event.ApplicationContextInitializedEvent event)
eventCallback 在类中 ContextInitializedListenerCopyright © 2022. All rights reserved.