121(新uat)环境配置

This commit is contained in:
1378012178@qq.com 2025-04-15 09:46:57 +08:00
parent bd5c9bc41d
commit c6e11e2d2f
5 changed files with 102 additions and 55 deletions

View File

@ -20,6 +20,8 @@ management:
include: metrics,jeecghttptrace include: metrics,jeecghttptrace
spring: spring:
application:
name: nursing-unit-001
# flyway配置 # flyway配置
flyway: flyway:
# 是否启用flyway # 是否启用flyway

View File

@ -1,5 +1,5 @@
server: server:
port: 8080 port: 8081
tomcat: tomcat:
max-swallow-size: -1 max-swallow-size: -1
error: error:
@ -7,7 +7,7 @@ server:
include-stacktrace: ALWAYS include-stacktrace: ALWAYS
include-message: ALWAYS include-message: ALWAYS
servlet: servlet:
context-path: /nursing-unit context-path: /nursing-unit_001
compression: compression:
enabled: true enabled: true
min-response-size: 1024 min-response-size: 1024
@ -45,8 +45,8 @@ spring:
clean-disabled: true clean-disabled: true
servlet: servlet:
multipart: multipart:
max-file-size: 10MB max-file-size: 100MB
max-request-size: 10MB max-request-size: 100MB
mail: mail:
# 定时任务发送邮件 # 定时任务发送邮件
timeJobSend: false timeJobSend: false
@ -64,7 +64,7 @@ spring:
quartz: quartz:
job-store-type: jdbc job-store-type: jdbc
initialize-schema: embedded initialize-schema: embedded
#定时任务开关true-开 false-关 #定时任务启动开关true-开 false-关
auto-startup: true auto-startup: true
#延迟1秒启动定时任务 #延迟1秒启动定时任务
startup-delay: 1s startup-delay: 1s
@ -80,9 +80,10 @@ spring:
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_ tablePrefix: QRTZ_
isClustered: true isClustered: false
misfireThreshold: 12000 misfireThreshold: 12000
clusterCheckinInterval: 15000 clusterCheckinInterval: 0 #心跳检查 之前是15000
acquireTriggersWithinLock: false # 减少锁竞争
threadPool: threadPool:
class: org.quartz.simpl.SimpleThreadPool class: org.quartz.simpl.SimpleThreadPool
threadCount: 10 threadCount: 10
@ -144,8 +145,8 @@ spring:
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000 timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒 # 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000 minEvictableIdleTimeMillis: 3600000
validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1
testWhileIdle: true testWhileIdle: true
testOnBorrow: false testOnBorrow: false
testOnReturn: false testOnReturn: false
@ -163,25 +164,26 @@ spring:
slow-sql-millis: 5000 slow-sql-millis: 5000
datasource: datasource:
master: master:
url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai url: jdbc:mysql://1.92.152.160:33061/nursing_unit_001?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
# url: jdbc:mysql://localhost:3306/nursing_unit_001?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置-运维系统
multi-datasource1:
url: jdbc:mysql://1.92.152.160:33061/nursing_unit?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root username: root
password: root password: root
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置
#multi-datasource1:
#url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
#username: root
#password: root
#driver-class-name: com.mysql.cj.jdbc.Driver
#redis 配置 #redis 配置
redis: redis:
database: 0 database: 0
host: 127.0.0.1 host: 127.0.0.1
port: 6379 port: 6379
password: '' password:
#mybatis plus 设置 #mybatis plus 设置
mybatis-plus: mybatis-plus:
mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml,classpath*:com/nu/**/xml/*Mapper.xml
global-config: global-config:
# 关闭MP3.0自带的banner # 关闭MP3.0自带的banner
banner: false banner: false
@ -192,7 +194,7 @@ mybatis-plus:
table-underline: true table-underline: true
configuration: configuration:
# 这个配置会将执行的sql打印出来在开发或测试的时候可以用 # 这个配置会将执行的sql打印出来在开发或测试的时候可以用
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 返回类型为Map,显示null对应的字段 # 返回类型为Map,显示null对应的字段
call-setters-on-nulls: true call-setters-on-nulls: true
#jeecg专用配置 #jeecg专用配置
@ -209,33 +211,32 @@ jeecg:
# 平台上线安全配置 # 平台上线安全配置
firewall: firewall:
# 数据源安全 (开启后Online报表和图表的数据源为必填) # 数据源安全 (开启后Online报表和图表的数据源为必填)
dataSourceSafe: true dataSourceSafe: false
# 低代码模式dev:开发模式prod:发布模式——关闭所有在线开发配置能力) # 低代码模式dev:开发模式prod:发布模式——关闭所有在线开发配置能力)
lowCodeMode: prod lowCodeMode: dev
# 签名密钥串(前后端要一致,正式发布请自行修改) # 签名密钥串(前后端要一致,正式发布请自行修改)
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
#签名拦截接口 #签名拦截接口
signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys,/sys/sendChangePwdSms,/sys/user/sendChangePhoneSms,/sys/sms,/desform/api/sendVerifyCode signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys,/sys/sendChangePwdSms,/sys/user/sendChangePhoneSms,/sys/sms,/desform/api/sendVerifyCode
# local\minio\alioss # 本地local、Miniominio、阿里云alioss
uploadType: alioss uploadType: local
# 前端访问地址 # 前端访问地址
domainUrl: domainUrl:
pc: http://localhost:3100 pc: http://localhost:3100
app: http://localhost:8051 app: http://localhost:8051
path: path:
#文件上传根目录 设置 #文件上传根目录 设置
upload: /opt/jeecg-boot/upload upload: /opt/upFiles
#webapp文件路径 #webapp文件路径
webapp: /opt/jeecg-boot/webapp webapp: /opt/webapp
shiro: shiro:
excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**
#阿里云oss存储和大鱼短信秘钥配置 #阿里云oss存储和大鱼短信秘钥配置
oss: oss:
accessKey: ?? accessKey: ??
secretKey: ?? secretKey: ??
endpoint: oss-cn-beijing.aliyuncs.com endpoint: oss-cn-beijing.aliyuncs.com
bucketName: jeecgdev bucketName: jeecgdev
staticDomain: https://static.jeecg.com
# 短信模板 # 短信模板
sms-template: sms-template:
# 签名 # 签名
@ -248,11 +249,6 @@ jeecg:
SMS_465391221: SMS_465391221:
# 注册账号短信模板编码 # 注册账号短信模板编码
SMS_175430166: SMS_175430166:
# ElasticSearch 设置
elasticsearch:
cluster-name: jeecg-ES
cluster-nodes: 127.0.0.1:9200
check-enabled: false
# 在线预览文件服务器地址配置 # 在线预览文件服务器地址配置
file-view-domain: http://fileview.jeecg.com file-view-domain: http://fileview.jeecg.com
# minio文件上传 # minio文件上传
@ -268,9 +264,9 @@ jeecg:
# 平台上线安全配置(v1.6.2+ 新增) # 平台上线安全配置(v1.6.2+ 新增)
firewall: firewall:
# 数据源安全 (开启后不允许使用平台数据源、SQL解析加签并且不允许查询数据库) # 数据源安全 (开启后不允许使用平台数据源、SQL解析加签并且不允许查询数据库)
dataSourceSafe: true dataSourceSafe: false
# 低代码开发模式dev:开发模式prod:发布模式—关闭在线报表设计功能分配角色admin、lowdeveloper可以放开限制 # 低代码开发模式dev:开发模式prod:发布模式—关闭在线报表设计功能分配角色admin、lowdeveloper可以放开限制
lowCodeMode: prod lowCodeMode: dev
#xxl-job配置 #xxl-job配置
xxljob: xxljob:
enabled: false enabled: false
@ -293,7 +289,11 @@ jeecg:
app-id: ?? app-id: ??
api-key: ?? api-key: ??
secret-key: ?? secret-key: ??
# ElasticSearch 6设置
elasticsearch:
cluster-name: jeecg-ES
cluster-nodes: 127.0.0.1:9200
check-enabled: false
#cas单点登录 #cas单点登录
cas: cas:
prefixUrl: http://cas.example.org:8443/cas prefixUrl: http://cas.example.org:8443/cas
@ -302,14 +302,15 @@ logging:
level: level:
org.flywaydb: debug org.flywaydb: debug
org.jeecg.modules.system.mapper: info org.jeecg.modules.system.mapper: info
com.nu.modules.system.mapper: info
#swagger #swagger
knife4j: knife4j:
#开启增强配置 #开启增强配置
enable: true enable: true
#开启生产环境屏蔽 #开启生产环境屏蔽
production: true production: false
basic: basic:
enable: true enable: false
username: jeecg username: jeecg
password: jeecg1314 password: jeecg1314
#第三方登录 #第三方登录
@ -337,3 +338,15 @@ justauth:
type: default type: default
prefix: 'demo::' prefix: 'demo::'
timeout: 1h timeout: 1h
#tplink登录信息
tplink:
tums:
url: https://121.36.88.64:8888
username: admin
password: Bl20230518
ftp:
ip: 1.92.152.160
port: 21
username: administrator
password: Root@123..
uploadpath: /

View File

@ -20,6 +20,8 @@ management:
include: metrics,jeecghttptrace include: metrics,jeecghttptrace
spring: spring:
application:
name: nursing-unit-001
# flyway配置 # flyway配置
flyway: flyway:
# 是否启用flyway # 是否启用flyway
@ -164,23 +166,22 @@ spring:
slow-sql-millis: 5000 slow-sql-millis: 5000
datasource: datasource:
master: master:
url: jdbc:mysql://localhost:40521/nursing_unit_001?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai url: jdbc:mysql://mysql8-prod:3306/nursing_unit_001?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
# url: jdbc:mysql://localhost:3306/nursing_unit_001?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai username: fw8864sshdang
username: root password: uGDBkM25I6nZCNM2
password: BLXC@123. driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置-运维系统
multi-datasource1:
url: jdbc:mysql://mysql8-prod:3306/nursing_unit?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: fw8864sshdang
password: uGDBkM25I6nZCNM2
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置
#multi-datasource1:
#url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
#username: root
#password: root
#driver-class-name: com.mysql.cj.jdbc.Driver
#redis 配置 #redis 配置
redis: redis:
database: 0 database: 0
host: 127.0.0.1 host: redis
port: 6379 port: 6379
password: password: uUgrUus4JAYuwxzo
#mybatis plus 设置 #mybatis plus 设置
mybatis-plus: mybatis-plus:
mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml,classpath*:com/nu/**/xml/*Mapper.xml mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml,classpath*:com/nu/**/xml/*Mapper.xml
@ -226,9 +227,9 @@ jeecg:
app: http://localhost:8051 app: http://localhost:8051
path: path:
#文件上传根目录 设置 #文件上传根目录 设置
upload: /opt/upFiles upload: /opt/nu001/upFiles
#webapp文件路径 #webapp文件路径
webapp: /opt/webapp webapp: /opt/nu001/webapp
shiro: shiro:
excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/** excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**
#阿里云oss存储和大鱼短信秘钥配置 #阿里云oss存储和大鱼短信秘钥配置

View File

@ -0,0 +1,16 @@
spring:
cloud:
nacos:
discovery:
server-addr: ${config.server-addr}
namespace: ${config.namespace}
group: ${config.group}
username: ${config.username}
password: ${config.password}
config:
server-addr: ${config.server-addr}
namespace: ${config.namespace}
group: ${config.group}
file-extension: yaml
username: ${config.username}
password: ${config.password}

23
pom.xml
View File

@ -150,6 +150,17 @@
<artifactId>commonmark</artifactId> <artifactId>commonmark</artifactId>
<version>${commonmark.version}</version> <version>${commonmark.version}</version>
</dependency> </dependency>
<!-- Nacos 服务发现 -->
<!-- <dependency>-->
<!-- <groupId>com.alibaba.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
<!-- </dependency>-->
<!-- Nacos 配置中心 -->
<!-- <dependency>-->
<!-- <groupId>com.alibaba.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>-->
<!-- </dependency>-->
</dependencies> </dependencies>
<dependencyManagement> <dependencyManagement>
@ -471,7 +482,7 @@
<!--当前环境--> <!--当前环境-->
<profile.name>dev</profile.name> <profile.name>dev</profile.name>
<!--Nacos服务地址--> <!--Nacos服务地址-->
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr> <config.server-addr>127.0.0.1:8848</config.server-addr>
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID不能使用名称,默认为空--> <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID不能使用名称,默认为空-->
<config.namespace></config.namespace> <config.namespace></config.namespace>
<!--Nacos配置分组名称--> <!--Nacos配置分组名称-->
@ -515,19 +526,23 @@
<!-- UAT --> <!-- UAT -->
<profile> <profile>
<id>uat</id> <id>uat</id>
<activation>
<!--默认激活配置-->
<activeByDefault>false</activeByDefault>
</activation>
<properties> <properties>
<!--当前环境--> <!--当前环境-->
<profile.name>uat</profile.name> <profile.name>uat</profile.name>
<!--Nacos服务地址--> <!--Nacos服务地址-->
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr> <config.server-addr>nacos:8848</config.server-addr>
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID不能使用名称,默认为空--> <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID不能使用名称,默认为空-->
<config.namespace></config.namespace> <config.namespace></config.namespace>
<!--Nacos配置分组名称--> <!--Nacos配置分组名称-->
<config.group>DEFAULT_GROUP</config.group> <config.group>DEFAULT_GROUP</config.group>
<!--Nacos用户名--> <!--Nacos用户名-->
<config.username></config.username> <config.username>fw8864nasadn</config.username>
<!--Nacos密码--> <!--Nacos密码-->
<config.password></config.password> <config.password>JINisgIngV82G2</config.password>
</properties> </properties>
</profile> </profile>
<!-- 生产 --> <!-- 生产 -->