Spring Boot: SpringBootServletInitializer is deprecated
You are using org.springframework.boot.context.web.SpringBootServletInitializer
this is deprecated. Instead:
Use
org.springframework.boot.web.support.SpringBootServletInitializer
For SpringBoot 2.0
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
You can try this - worked for me
import org.springframework.boot.web.servlet.ServletContextInitializer;