feat:生产配置
This commit is contained in:
23
pom.xml
23
pom.xml
@@ -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>
|
||||||
@@ -26,6 +26,7 @@ spring:
|
|||||||
|
|
||||||
aliyun:
|
aliyun:
|
||||||
dns:
|
dns:
|
||||||
|
rootDomain: xiangtech.xyz
|
||||||
RR:
|
RR:
|
||||||
- client
|
- client
|
||||||
- file
|
- file
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ server:
|
|||||||
port: 10086
|
port: 10086
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: local
|
active: prod
|
||||||
application:
|
application:
|
||||||
name: script
|
name: script
|
||||||
Reference in New Issue
Block a user