自动化部署打包测试
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>
|
||||
</plugin>
|
||||
</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>
|
||||
|
||||
<!--定义三种开发环境-->
|
||||
<profiles>
|
||||
<profile>
|
||||
<!--不同环境的唯一id-->
|
||||
<id>dev</id>
|
||||
<activation>
|
||||
<!--默认激活开发环境-->
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<profile.active>dev</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
<!--测试环境-->
|
||||
<profile>
|
||||
<id>test</id>
|
||||
<properties>
|
||||
<profile.active>test</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
<!--生产环境-->
|
||||
<profile>
|
||||
<id>prod</id>
|
||||
<properties>
|
||||
<profile.active>prod</profile.active>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -1,35 +1,3 @@
|
|||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306?organize_oa
|
||||
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
|
||||
profiles:
|
||||
active: @profile.active@
|
Loading…
Reference in New Issue
Block a user