Browse Source

凯悦南通v1.0

wzy 1 year ago
parent
commit
9737d5966d

+ 25 - 0
mjava-kaiyue_nt/pom.xml

@@ -25,5 +25,30 @@
             <scope>compile</scope>
         </dependency>
     </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <version>2.1.1.RELEASE</version>
+                <configuration>
+                    <includeSystemScope>true</includeSystemScope>
+                    <!-- 如果没有该配置,devtools不会生效: 打包时关闭 -->
+                    <fork>false</fork>
+                    <!-- 避免中文乱码 -->
+                    <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
+                </configuration>
+                <!-- 允许生成可运行jar -->
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+        <finalName>${project.artifactId}</finalName>
+    </build>
 
 </project>

+ 7 - 1
mjava-kaiyue_nt/src/main/resources/application-prod.yml

@@ -1,6 +1,6 @@
 # 环境配置
 server:
-  port: 9013
+  port: 8113
   servlet:
     context-path: /api/kaiyue_nt
 
@@ -22,6 +22,12 @@ spring:
     database: MYSQL
     database-platform: org.hibernate.dialect.MySQL57Dialect
 
+logging:
+  config: classpath:logback-spring.xml
+  path: /home/server/kaiyue_nt/log/
+  level:
+    com.malk.*: debug
+
 # dingtalk
 dingtalk:
   agentId: 3103808497

+ 3 - 0
mjava-kaiyue_nt/src/main/resources/application.yml

@@ -0,0 +1,3 @@
+spring:
+  profiles:
+    active: prod