No. Web projects don't need to extend SpringBootServletInitializer
. It works fine without it. You should
only extend this class if you want to override the default configuration, which is not necessary.
On the other hand, even though your application is a web application, it needs to be packaged as a jar
and not a war
, because you are using Spring Boot to create a self-contained application.