SEARCH BY

All

  • All
  • Java8
  • Spring

Uploading war file generated from Spring Boot into Tomcat

Post a Comment
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); }
@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);
	    }

}

jaya
I love software designing, coding, writing and teaching...

Share this article

Related Posts

Post a Comment

Place your code in <em> </em> tags to send in comments | Do not add hyper links in commnet

Close

Subscribe our newsletter for the latest articles directly into your email inbox