@SpringBootApplication public class ChatbotApplication extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(ChatbotApplication.class, args); } @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { return builder.sources(ChatbotApplication.class); } }
Uploading war file generated from Spring Boot into Tomcat
Here we must do the following steps before creating war file for our Spring Boot Application.
Our Main class must extends SpringBootServletInitializer by overriding @Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(ChatbotApplication.class);
}
Post a Comment
Post a Comment