Можно попробовать, это - работало на меня
import org.springframework.boot.web.servlet.ServletContextInitializer;