Commit 7568322d authored by 竹天卫's avatar 竹天卫

jenkins配置1

parent 1bff3e4f
......@@ -208,27 +208,6 @@
<activeByDefault>true</activeByDefault><!-- 默认激活该profile节点-->
</activation>
</profile>
<profile>
<!-- 生产环境 -->
<id>prod</id>
<properties>
<env>prod</env>
</properties>
<!--<activation>
<activeByDefault>true</activeByDefault>&lt;!&ndash; 默认激活该profile节点&ndash;&gt;
</activation>-->
</profile>
<profile>
<!-- 演示环境 -->
<id>show</id>
<properties>
<env>show</env>
</properties>
<!-- <activation>
<activeByDefault>true</activeByDefault>&lt;!&ndash; 默认激活该profile节点&ndash;&gt;
</activation>-->
</profile>
</profiles>
<build>
......@@ -265,8 +244,6 @@
<filtering>true</filtering> <!--动态配置-->
<excludes> <!--去除多余的文件-->
<exclude>application-dev.yml</exclude>
<exclude>application-prod.yml</exclude>
<exclude>application-show.yml</exclude>
</excludes>
</resource>
<resource>
......
#-Dspring.config.location=D:\idea_workspases\tianjin-acquisition\acquisition-business\src\main\resources\application.yml
server:
port: 7008
spring:
application: tianjin-acquisition
profiles:
active: prod
datasource:
# 192.168.110.85 data-acquisition
url: jdbc:mysql://192.168.110.85:3306/data-acquisition?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: root
password: admin!@#123
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
minimum-idle: 3
maximum-pool-size: 10
max-lifetime: 30000 #不能小于30秒,否则默认回到1800秒
connection-test-query: SELECT 1
redis:
port: 6379
host: localhost
# password: Wise_@123456
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
# 设置swagger用户名密码
swagger:
basic:
enable: false
username: admin
password: admin
mybatis-plus:
# 启动时是否检查MyBatis XML文件是否存在
check-config-location: true
type-aliases-package: cn.wise.sc.acquisition.business.entity.**
mapper-locations: classpath:/cn/wise/sc/acquisition/business/mapper/xml/*Mapper.xml
server:
port: 7012
spring:
application: bangye
profiles:
active: show
datasource:
# 192.168.110.85 data-acquisition
url: jdbc:mysql://192.168.110.85:3306/data-acquisition?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: root
password: admin!@#123
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
minimum-idle: 3
maximum-pool-size: 10
max-lifetime: 30000 #不能小于30秒,否则默认回到1800秒
connection-test-query: SELECT 1
redis:
port: 6379
host: localhost
database: 1
# password: Wise_@123456
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
# 设置swagger用户名密码
swagger:
basic:
enable: false
username: admin
password: admin
mybatis-plus:
# 启动时是否检查MyBatis XML文件是否存在
check-config-location: true
type-aliases-package: cn.wise.sc.acquisition.business.entity.**
mapper-locations: classpath:/cn/wise/sc/acquisition/business/mapper/xml/*Mapper.xml
......@@ -189,28 +189,5 @@
</root>
</springProfile>
<!--4.2 生产环境:输出到文档-->
<springProfile name="prod">
<logger name="cn.wise.sc.acquisition.business.controller" level="debug"/><!-- 修改此处扫描包名 -->
<root level="debug">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="DEBUG_FILE"/>
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="ERROR_FILE"/>
<appender-ref ref="WARN_FILE"/>
</root>
</springProfile>
<!--4.3 演示环境:输出到文档-->
<springProfile name="show">
<logger name="cn.wise.sc.acquisition.business.controller" level="debug"/><!-- 修改此处扫描包名 -->
<root level="debug">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="DEBUG_FILE"/>
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="ERROR_FILE"/>
<appender-ref ref="WARN_FILE"/>
</root>
</springProfile>
</configuration>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment