I have a Spring application that runs as a WAR file in a standalone servlet container, by having a class that extends SpringBootServletInitializer, which is called by the servlet container.
I would like to be able to run the application using the Spring Boot embedded servlet container, rather than have to create a WAR and deploy it into my standalone servlet container.
I tried creating a class that has the @SpringBootAppliation annotation and calls SpringApplication.run(…). However, this ends up throwing exceptions which I think are to do with the application starting before the servlet container.
As such, I was wondering if it was possible to start the embedded servlet container and run my application as if it was running in the standalone servlet container, e.g. have the servlet container call the SpringBootServletInitialiser
Regards,
Carl