Override default servlet with Spring Boot

Hi all,

I’m using Spring Boot to bootstrap my application. And I would like to override VaadinServlet with my custom version, like this:

public class MyServlet extends VaadinServlet { @Override protected void servletInitialized() throws ServletException { super.servletInitialized(); getService().addSessionInitListener(new MySessionInitListener()); } } However, I cannot find a way to tell Spring to pick it up. How is this usually done?

P.S. Code samples are highly appreciated

Hi,

Make sure you are using the latest version. The simply publish your custom version in you configuration like in
this example
.

cheers,
matti

Thank you!