public class ApplicationReadyListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
| 构造器和说明 |
|---|
ApplicationReadyListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
Object bean = event.getApplicationContext().getBean("webRequestLoggingFilter");
if(bean !
|
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
Object bean = event.getApplicationContext().getBean("webRequestLoggingFilter");
if(bean != null && bean instanceof WebRequestTraceFilter) {
WebRequestTraceFilter webRequestTraceFilter = (WebRequestTraceFilter)bean;
webRequestTraceFilter.setDumpRequests(true);
}
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>event - Copyright © 2019. All rights reserved.