Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
竹天卫
tianjin-cement
Commits
038248ae
Commit
038248ae
authored
Mar 19, 2021
by
shulidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包环境配置
parent
fbf022ff
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
179 additions
and
106 deletions
+179
-106
pom.xml
cement-business/pom.xml
+31
-16
application-dev.yml
cement-business/src/main/resources/application-dev.yml
+74
-0
application-prod.yml
cement-business/src/main/resources/application-prod.yml
+73
-0
application.yml
cement-business/src/main/resources/application.yml
+1
-90
No files found.
cement-business/pom.xml
View file @
038248ae
...
...
@@ -197,7 +197,25 @@
</dependency>
</dependencies>
<profiles>
<profile>
<!-- 开发环境 -->
<id>
dev
</id>
<properties>
<env>
dev
</env>
<!-- 节点名字environment是自己随意取的 -->
</properties>
<activation>
<activeByDefault>
true
</activeByDefault>
<!-- 默认激活该profile节点-->
</activation>
</profile>
<profile>
<!-- 生产环境 -->
<id>
prod
</id>
<properties>
<env>
prod
</env>
</properties>
</profile>
</profiles>
<build>
<plugins>
...
...
@@ -226,26 +244,23 @@
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<!--指定文件下-->
<filtering>
true
</filtering>
<!--动态配置-->
<excludes>
<!--去除多余的文件-->
<exclude>
application-dev.yml
</exclude>
<exclude>
application-prod.yml
</exclude>
</excludes>
</resource>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
<includes>
<!--<include>*.xlsx</include>
<include>*</include>-->
<filtering>
true
</filtering>
<!--动态配置 ${env}-->
<includes>
<!--包含加载的文件(env 默认加载uat 具体看配置)-->
<include>
application-${env}.yml
</include>
</includes>
</resource>
<!--<resource>
<directory>src/main/resources/templates</directory>
<filtering>true</filtering>
<includes>
<include>*</include>
</includes>
<targetPath>/templates</targetPath>
</resource>-->
<resource>
<directory>
src/main/java/cn/wise/sc/cement/business/mapper/xml
</directory>
<filtering>
true
</filtering>
...
...
cement-business/src/main/resources/application-dev.yml
0 → 100644
View file @
038248ae
server
:
port
:
7005
#-Dspring.config.location=D:\idea_workspases\tianjin-cement\cement-business\src\main\resources\application.yml
spring
:
application
:
tianjin-cement
profiles
:
active
:
dev
datasource
:
# 192.168.110.85 admin!@#123 sinoma_zhengshiData sinoma_tmp
url
:
jdbc:mysql://192.168.110.85:3306/sinoma_zhengshiData?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
:
192.168.110.85
# 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.cement.business.entity.**
mapper-locations
:
classpath:/cn/wise/sc/cement/business/mapper/xml/*Mapper.xml
#测试服务器
weixin
:
corpId
:
ww348f91b2573c1867
agentId
:
1000002
agentIdPC
:
1000003
agentSecret
:
gFa_7XvXtCaoeAYERzjRwwz_OTJkJfgBb8weOKjmI3o
agentSecretPC
:
itCLYcwl9ggA9VfZam_iz96Ikp9StDFfVr4Adb0yY7A
backUrl
:
https%3a%2f%2flab.wisenergy.cn%2flab-bangye
backOrcUrl
:
https://lab.wisenergy.cn/lab-bangye
systemUrl
:
'
<a
href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww348f91b2573c1867&redirect_uri=U_R_L&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
#邦业服务器
#weixin:
# corpId: ww348f91b2573c1867
# agentId: 1000004
# agentIdPC: 1000005
# agentSecret: flISLojPiE1_ieO9bPgyZ4g_4O-Rr-FKzs7e7p3HEtA
# agentSecretPC: ABagJNftdn1uOYsDLrhlCIM8jZdcTgEA9DyX6kn_-hY
# backUrl: https%3a%2f%2flab.wisenergy.cn%2flab-bangye
# backOrcUrl: https://lab.wisenergy.cn/lab-bangye
# systemUrl: '<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww348f91b2573c1867&redirect_uri=U_R_L&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
cement-business/src/main/resources/application-prod.yml
0 → 100644
View file @
038248ae
#-Dspring.config.location=D:\idea_workspases\tianjin-cement\cement-business\src\main\resources\application.yml
spring
:
application
:
tianjin-cement
profiles
:
active
:
dev
datasource
:
url
:
jdbc:mysql://47.93.148.213:3306/sinoma_tcdri?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.cement.business.entity.**
mapper-locations
:
classpath:/cn/wise/sc/cement/business/mapper/xml/*Mapper.xml
#正式服务器
weixin
:
corpId
:
wwc7ae84e6af6ba921
agentIdPC
:
1000151
agentSecretPC
:
h4K-GL1y7pCADFZQ7m1tO1GOSa3zU4kGEItFknvwOAg
agentId
:
1000150
agentSecret
:
zWIO_kt36d1jta3R76s6WmKFdfs2TuJ1wTQu1IXO0Fc
backUrl
:
https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system
backOrcUrl
:
https://ccdcmtl.sinoma-tianjin.com/lab-system
systemUrl
:
'
<a
href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwc7ae84e6af6ba921&redirect_uri=U_R_L&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
# 原始链接备份
# systemUrl: '<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwc7ae84e6af6ba921&redirect_uri=https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system%2f&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
#邦业服务器
#weixin:
# corpId: ww348f91b2573c1867
# agentId: 1000004
# agentIdPC: 1000005
# agentSecret: flISLojPiE1_ieO9bPgyZ4g_4O-Rr-FKzs7e7p3HEtA
# agentSecretPC: ABagJNftdn1uOYsDLrhlCIM8jZdcTgEA9DyX6kn_-hY
# backUrl: https%3a%2f%2flab.wisenergy.cn%2flab-bangye
# backOrcUrl: https://lab.wisenergy.cn/lab-bangye
# systemUrl: '<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww348f91b2573c1867&redirect_uri=U_R_L&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
cement-business/src/main/resources/application.yml
View file @
038248ae
server
:
port
:
7007
#-Dspring.config.location=D:\idea_workspases\tianjin-cement\cement-business\src\main\resources\application.yml
spring
:
application
:
tianjin-cement
profiles
:
active
:
dev
datasource
:
# 192.168.110.85 admin!@#123 sinoma_zhengshiData sinoma_tmp
url
:
jdbc:mysql://192.168.110.85:3306/sinoma_zhengshiData?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
# url: jdbc:mysql://192.168.110.85:3306/sinoma_bangye?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
# url: jdbc:mysql://47.93.148.213:3306/sinoma_tcdri?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.cement.business.entity.**
mapper-locations
:
classpath:/cn/wise/sc/cement/business/mapper/xml/*Mapper.xml
#正式服务器
#weixin:
# corpId: wwc7ae84e6af6ba921
# agentIdPC: 1000151
# agentSecretPC: h4K-GL1y7pCADFZQ7m1tO1GOSa3zU4kGEItFknvwOAg
# agentId: 1000150
# agentSecret: zWIO_kt36d1jta3R76s6WmKFdfs2TuJ1wTQu1IXO0Fc
# backUrl: https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system
# backOrcUrl: https://ccdcmtl.sinoma-tianjin.com/lab-system
# systemUrl: '<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwc7ae84e6af6ba921&redirect_uri=U_R_L&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
# 原始链接备份
# systemUrl: '<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwc7ae84e6af6ba921&redirect_uri=https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system%2f&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
#测试服务器
weixin
:
corpId
:
ww348f91b2573c1867
agentId
:
1000002
agentIdPC
:
1000003
agentSecret
:
gFa_7XvXtCaoeAYERzjRwwz_OTJkJfgBb8weOKjmI3o
agentSecretPC
:
itCLYcwl9ggA9VfZam_iz96Ikp9StDFfVr4Adb0yY7A
backUrl
:
https%3a%2f%2flab.wisenergy.cn%2flab-bangye
backOrcUrl
:
https://lab.wisenergy.cn/lab-bangye
systemUrl
:
'
<a
href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww348f91b2573c1867&redirect_uri=U_R_L&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
#邦业服务器
#weixin:
# corpId: ww348f91b2573c1867
# agentId: 1000004
# agentIdPC: 1000005
# agentSecret: flISLojPiE1_ieO9bPgyZ4g_4O-Rr-FKzs7e7p3HEtA
# agentSecretPC: ABagJNftdn1uOYsDLrhlCIM8jZdcTgEA9DyX6kn_-hY
# backUrl: https%3a%2f%2flab.wisenergy.cn%2flab-bangye
# backOrcUrl: https://lab.wisenergy.cn/lab-bangye
# systemUrl: '<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww348f91b2573c1867&redirect_uri=U_R_L&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
port
:
7005
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment