Spring Boot - where to place the jsp files

前端 未结 8 2176
无人及你
无人及你 2020-12-20 15:55

I am trying to develop a new Spring boot application using MVC as a first step to move my existing Spring MVC application to Spring boot.

However, I am facing an is

8条回答
  •  感情败类
    2020-12-20 16:23

    I am facing The Same issue and I remove this problem by following changes:

    @SpringBootApplication
    public class MyFirstAppApplication extends SpringBootServletInitializer {
        public static void main(String[] args) {
            SpringApplication.run(MyFirstAppApplication.class, args);
        }
    }
    
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(MyFirstAppApplication.class);
    }
    

    No need to make ServletInitializer new class.

提交回复
热议问题