自动化部署打包测试
This commit is contained in:
parent
b0fcddf675
commit
2bf1768e08
29
pom.xml
29
pom.xml
|
@ -149,24 +149,53 @@
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<excludes>
|
||||||
|
<exclude>application*.yml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
<includes>
|
||||||
|
<include>application.yml</include>
|
||||||
|
<include>application-${profile.active}.yml</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<!--定义三种开发环境-->
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
|
<!--不同环境的唯一id-->
|
||||||
<id>dev</id>
|
<id>dev</id>
|
||||||
<activation>
|
<activation>
|
||||||
|
<!--默认激活开发环境-->
|
||||||
<activeByDefault>true</activeByDefault>
|
<activeByDefault>true</activeByDefault>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<properties>
|
||||||
<profile.active>dev</profile.active>
|
<profile.active>dev</profile.active>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!--测试环境-->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test</id>
|
<id>test</id>
|
||||||
<properties>
|
<properties>
|
||||||
<profile.active>test</profile.active>
|
<profile.active>test</profile.active>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!--生产环境-->
|
||||||
|
<profile>
|
||||||
|
<id>prod</id>
|
||||||
|
<properties>
|
||||||
|
<profile.active>prod</profile.active>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,35 +1,3 @@
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
profiles:
|
||||||
url: jdbc:mysql://localhost:3306?organize_oa
|
active: @profile.active@
|
||||||
username: root
|
|
||||||
password: Zrx@20041009
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
redis:
|
|
||||||
database: 0
|
|
||||||
host: localhost
|
|
||||||
port: 6379
|
|
||||||
password: Zrx@20041009
|
|
||||||
mail:
|
|
||||||
default-encoding: UTF-8
|
|
||||||
host: smtp.qiye.aliyun.com
|
|
||||||
username: wxxydeveloper@x-lf.cn
|
|
||||||
password: 114477225588Zcw
|
|
||||||
properties:
|
|
||||||
form: wxxydeveloper@x-lf.cn
|
|
||||||
mail:
|
|
||||||
smtp:
|
|
||||||
auth: true
|
|
||||||
starttls:
|
|
||||||
enable: true
|
|
||||||
ssl:
|
|
||||||
enable: true
|
|
||||||
mybatis:
|
|
||||||
configuration:
|
|
||||||
map-underscore-to-camel-case: true
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
root: TRACE
|
|
||||||
sun.rmi: OFF
|
|
||||||
org.apache.tomcat: WARN
|
|
||||||
server:
|
|
||||||
port: 8155
|
|
Loading…
Reference in New Issue
Block a user