I\'m trying to convert my project to Spring Boot project (executable jar file with Jetty embedded). All works with a standard example but I want migrate my old web.xml to Sp
Spring Boot will automatically register any @Beans of the following types with the servlet container:
For example, to register GravityWebSocketDeployer which is a ServletContextListener add a @Bean method to your configuration class:
@Bean
public GravityWebSocketDeployer gravityWebSocketDeployer() {
return new GravityWebSocketDeployer();
}