Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
kb:create_war [2016/08/08 07:37]
yehuda created
kb:create_war [2016/08/08 08:11]
yehuda
Line 1: Line 1:
 ====== Create WAR ====== ====== Create WAR ======
 +<code java alefbtApplication.java>
 +package com.alefbt.example;
  
 +import org.springframework.boot.SpringApplication;
 +import org.springframework.boot.autoconfigure.SpringBootApplication;
 +import org.springframework.boot.builder.SpringApplicationBuilder;
 +import org.springframework.boot.context.web.SpringBootServletInitializer;
 +
 +@SpringBootApplication
 +public class alefbtApplication extends SpringBootServletInitializer {
 +
 + @Override
 +    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
 +        return application.sources(alefbtApplication.class);
 +    }
 +
 + public static void main(String[] args) throws Exception {
 + SpringApplication.run(alefbtApplication.class, args);
 + }
 +
 +}
 +</code>
 <code xml pom.xml> <code xml pom.xml>
 <!-- Add to dependency --> <!-- Add to dependency -->
kb/create_war.txt ยท Last modified: 2016/08/08 08:20 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0