diff --git a/pom.xml b/pom.xml
index 7dbc2ff..5f6da07 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
udidl
1.0-SNAPSHOT
- jar
+ war
1.8
@@ -47,6 +47,21 @@
org.springframework.boot
spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+ provided
@@ -152,10 +167,19 @@
5.5.1
+
+ javax.servlet
+ javax.servlet-api
+ 4.0.1
+ provided
+
+
+
+ UDI_DL_Server
org.apache.maven.plugins
diff --git a/src/main/java/com/glxp/udidl/admin/Application.java b/src/main/java/com/glxp/udidl/admin/Application.java
index 8480bb0..1c46a72 100644
--- a/src/main/java/com/glxp/udidl/admin/Application.java
+++ b/src/main/java/com/glxp/udidl/admin/Application.java
@@ -3,16 +3,23 @@ package com.glxp.udidl.admin;
import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
@EnableTransactionManagement
@EnableSwagger2WebMvc
@SpringBootApplication(exclude = PageHelperAutoConfiguration.class)
-public class Application {
+public class Application extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
+ return builder.sources(Application.class);
+ }
+
}
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 469a057..e1efc28 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -2,7 +2,7 @@ server:
port: 9994
spring:
profiles:
- active: dev
+ active: pro
jmx:
enabled: false