use of org.springframework.boot.context.embedded.ServletListenerRegistrationBean in project x-pipe by ctripcorp.
the class CatConfig method catListener.
@Bean
public ServletListenerRegistrationBean<CatListener> catListener() {
ServletListenerRegistrationBean<CatListener> bean = new ServletListenerRegistrationBean<CatListener>(new CatListener());
bean.setName("cat-listener");
return bean;
}
Aggregations