Selaa lähdekoodia

更新war部署说明

RuoYi 7 vuotta sitten
vanhempi
commit
4802563837

BIN
doc/若依环境使用手册v1.0.docx


+ 1 - 0
pom.xml

@@ -186,6 +186,7 @@
 	</dependencies>
 	
 	<build>
+	    <finalName>${project.artifactId}</finalName>
 		<plugins>
 			<plugin>
 				<groupId>org.springframework.boot</groupId>

+ 19 - 0
src/main/java/com/ruoyi/RuoYiServletInitializer.java

@@ -0,0 +1,19 @@
+package com.ruoyi;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.support.SpringBootServletInitializer;
+
+/**
+ * web容器中进行部署
+ * 
+ * @author ruoyi
+ */
+public class RuoYiServletInitializer extends SpringBootServletInitializer
+{
+    @Override
+    protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
+    {
+        return application.sources(RuoYiApplication.class);
+    }
+
+}