feat:生产配置

This commit is contained in:
Xiang
2026-05-08 15:24:35 +08:00
parent 9d3db5e1b3
commit f1f3268e84
3 changed files with 25 additions and 1 deletions

23
pom.xml
View File

@@ -170,4 +170,27 @@
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.0.RELEASE</version>
<configuration>
<classifier>exec</classifier>
<!-- 指定该Main Class为全局的唯一入口 -->
<mainClass>com.xiang.Application</mainClass>
<layout>ZIP</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>

View File

@@ -26,6 +26,7 @@ spring:
aliyun: aliyun:
dns: dns:
rootDomain: xiangtech.xyz
RR: RR:
- client - client
- file - file

View File

@@ -2,6 +2,6 @@ server:
port: 10086 port: 10086
spring: spring:
profiles: profiles:
active: local active: prod
application: application:
name: script name: script