Differences

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

Link to this comparison view

Next revision
Previous revision
kb:create_war [2016/08/08 07:37]
yehuda created
kb:create_war [2016/08/08 08:20]
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 --> 
  <packaging>war</packaging>  <packaging>war</packaging>
  <properties>  <properties>
- <start-class>com.alefbt.eco.common.scalablejob.SJobExecuterApplication</start-class>+ <start-class>com.alefbt.example.Application</start-class>
  </properties>  </properties>
  <build>  <build>
 + <finalName>alefbt-example-war-name</finalName>
 +
  <plugins>  <plugins>
                  <plugin>                  <plugin>
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