新增:利元亨现场配置文件
This commit is contained in:
114
capability/src/main/resources/application-lyric.yml
Normal file
114
capability/src/main/resources/application-lyric.yml
Normal file
@@ -0,0 +1,114 @@
|
||||
server:
|
||||
port: 7107
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: capability
|
||||
datasource:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
maximum-pool-size: 450 # 连接池最大连接数(关键!)
|
||||
minimum-idle: 50 # 最小空闲连接数(与最大一致,避免频繁创建销毁)
|
||||
idle-timeout: 300000 # 空闲连接超时时间(5分钟)
|
||||
max-lifetime: 600000 # 连接最大存活时间(10分钟)
|
||||
connection-timeout: 30000 # 获取连接超时时间(30秒,避免线程阻塞)
|
||||
master:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
slave:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
enable: true
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 192.168.30.146:8848
|
||||
group: LYRIC_GROUP
|
||||
# server-addr: 127.0.0.1:8848
|
||||
enabled: true
|
||||
# username: nacos
|
||||
# password: ENC(+QKYnI6gAYu1SbLaZQTkZA==)
|
||||
data:
|
||||
redis:
|
||||
# Redis默认情况下有16个分片(库),这里配置具体使用的分片,默认是0
|
||||
database: 0
|
||||
# redis服务器地址(填写自己的服务器地址)
|
||||
host: 192.168.30.145
|
||||
# redis端口(默认6379)
|
||||
port: 6379
|
||||
#redis连接超时等待,10秒
|
||||
timeout: PT10S
|
||||
# redis访问密码(默认为空)
|
||||
password:
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池最大连接数(使用负值表示没有限制) 默认 8
|
||||
max-active: 50
|
||||
# 连接池中的最大空闲连接 默认 8
|
||||
max-idle: 20
|
||||
# 连接池中的最小空闲连接 默认 0
|
||||
min-idle: 1
|
||||
# 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1,这里配置10s
|
||||
max-wait: PT10S
|
||||
# password:
|
||||
# sentinel:
|
||||
# master: mymaster
|
||||
# nodes: 10.18.109.50:26379,10.18.109.51:26379,10.18.109.52:26379
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件的最大值
|
||||
max-file-size: 500MB
|
||||
# 上传文件总的最大值
|
||||
max-request-size: 10240MB
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
auto-mapping-behavior: full
|
||||
# cache-enabled: true
|
||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
global-config:
|
||||
# 逻辑删除配置
|
||||
db-config:
|
||||
# 删除前
|
||||
logic-not-delete-value: 1
|
||||
# 删除后
|
||||
logic-delete-value: 0
|
||||
|
||||
#showSql
|
||||
#logging:
|
||||
# level:
|
||||
# com.sdm.dao: debug
|
||||
|
||||
lombok:
|
||||
anyConstructor:
|
||||
addConstructorProperties: true
|
||||
|
||||
file:
|
||||
rootPath: /data/home/sdm
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- /pbs/jobFileCallback
|
||||
- /flow/approveHandleNotice
|
||||
|
||||
#logging:
|
||||
# config: ./config/logback.xml
|
||||
132
data/src/main/resources/application-lyric.yml
Normal file
132
data/src/main/resources/application-lyric.yml
Normal file
@@ -0,0 +1,132 @@
|
||||
server:
|
||||
port: 7104
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: data
|
||||
datasource:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
# 设置连接池能够容纳的最大连接数。建议值:CPU核心数 * 2 + 有效磁盘I/O数。一个常见的经验值是 10-20。
|
||||
maximum-pool-size: 20
|
||||
# 连接池在空闲时保持的最小连接数。
|
||||
minimum-idle: 5
|
||||
# 一个连接在被标记为空闲之前可以保持空闲状态的最长时间(毫秒)。当连接的空闲时间超过此值后,它可能会被连接池 evict(驱逐)。
|
||||
idle-timeout: 60000 # 1 min
|
||||
# 一个连接从被创建开始,其生命周期的最大时长(毫秒)。HikariCP的默认值就是30分钟,这是一个非常合理的设置。
|
||||
max-lifetime: 1800000 # 30 min(Hikari 默认)
|
||||
# 应用程序尝试从连接池获取一个连接时,等待的最长时间(毫秒)。建议值:30-60秒。
|
||||
connection-timeout: 30000 # 30s
|
||||
master:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
slave:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
enable: true
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 192.168.30.146:8848
|
||||
group: LYRIC_GROUP
|
||||
# server-addr: 127.0.0.1:8848
|
||||
enabled: true
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件的最大值
|
||||
max-file-size: 500MB
|
||||
# 上传文件总的最大值
|
||||
max-request-size: 10240MB
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
group:
|
||||
readiness:
|
||||
include: discoveryComposite,ping,refreshScope
|
||||
health:
|
||||
redis:
|
||||
enabled: false
|
||||
db:
|
||||
enabled: false
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
auto-mapping-behavior: full
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
# cache-enabled: true
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
global-config:
|
||||
# 逻辑删除配置
|
||||
db-config:
|
||||
# 删除前
|
||||
logic-not-delete-value: 1
|
||||
# 删除后
|
||||
logic-delete-value: 0
|
||||
|
||||
# MyBatis SQL日志配置
|
||||
logging:
|
||||
level:
|
||||
com.baomidou.mybatisplus.core.MybatisConfiguration: debug
|
||||
com.baomidou.mybatisplus.core.override.MybatisMapperRegistry: trace
|
||||
com.sdm.data.mapper: debug
|
||||
java.sql: debug
|
||||
java.sql.Connection: debug
|
||||
java.sql.Statement: debug
|
||||
java.sql.PreparedStatement: debug
|
||||
|
||||
lombok:
|
||||
anyConstructor:
|
||||
addConstructorProperties: true
|
||||
|
||||
file:
|
||||
rootPath: /data/home/sdm
|
||||
privatePath: /data/home
|
||||
|
||||
#logging:
|
||||
# config: ./config/logback.xml
|
||||
|
||||
# 配置文件系统类型
|
||||
fileSystem:
|
||||
minio: minio
|
||||
system: system
|
||||
chose: minio # 这里选择minio或者system
|
||||
|
||||
# spdmadmin/spdmadmin 作为普通用户只能看到spdm桶的数据
|
||||
minio:
|
||||
endpoint: 192.168.30.146
|
||||
port: 9000
|
||||
access-key: minioadmin
|
||||
secret-key: minioadmin
|
||||
secure: false
|
||||
secret-business-bucket: secretbusiness # 存放保密业务代码、脚本的桶(仅超级管理员访问)
|
||||
spdm-bucket: spdm # 普通业务数据桶(分配给用户读写权限)
|
||||
directMemory: 16384 # 16kb
|
||||
lifecycleConfig: '{"auto-expire-1d":"1d"}'
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- /data/previewImage
|
||||
- /data/approveDataFile
|
||||
- /data/downloadFile
|
||||
- /data/flowableUpFileToLocal
|
||||
- /data/flowableUpFileToLocalMerge
|
||||
- /data/getFileBaseInfo
|
||||
|
||||
data:
|
||||
storage-monitor:
|
||||
cron: 0 0 9 * * ?
|
||||
41
flowable/src/main/resources/application-lyric.yml
Normal file
41
flowable/src/main/resources/application-lyric.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
server:
|
||||
port: 7106
|
||||
spring:
|
||||
application:
|
||||
name: flowable
|
||||
datasource:
|
||||
url: jdbc:mysql://192.168.30.146:3306/flowable?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: mysql
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
flowable:
|
||||
# ?????????
|
||||
database-schema-update: true
|
||||
# ??????JOB
|
||||
async-executor-activate: true
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 192.168.65.161:8848
|
||||
group: LYRIC_GROUP
|
||||
enabled: true
|
||||
|
||||
logging:
|
||||
level:
|
||||
org:
|
||||
flowable: INFO
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:/mapper/**/*.xml
|
||||
type-aliases-package: com.sdm.flowable.model.entity
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: auto
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- /process/testHpc
|
||||
- /process/asyncCallback
|
||||
122
gateway2/src/main/resources/application-lyric.yml
Normal file
122
gateway2/src/main/resources/application-lyric.yml
Normal file
@@ -0,0 +1,122 @@
|
||||
server:
|
||||
port: 7100
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: gateway2
|
||||
cloud:
|
||||
nacos:
|
||||
config:
|
||||
server-addr: 192.168.30.146:8848
|
||||
file-extension: yaml
|
||||
import-check:
|
||||
enabled: false
|
||||
discovery:
|
||||
server-addr: 192.168.30.146:8848
|
||||
group: LYRIC_GROUP
|
||||
enabled: true
|
||||
gateway:
|
||||
httpclient:
|
||||
connect-timeout: 10000
|
||||
response-timeout: 10000
|
||||
routes:
|
||||
- id: approve-service
|
||||
uri: lb://approve
|
||||
predicates:
|
||||
- Path=/simulation/approve/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: capability-service
|
||||
uri: lb://capability
|
||||
predicates:
|
||||
- Path=/simulation/capability/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: data-service
|
||||
uri: lb://data
|
||||
predicates:
|
||||
- Path=/simulation/data/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: LYRIC_GROUP # 指定目标服务的分组
|
||||
- id: pbs-service
|
||||
uri: lb://pbs
|
||||
predicates:
|
||||
- Path=/simulation/pbs/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: performance-service
|
||||
uri: lb://performance
|
||||
predicates:
|
||||
- Path=/simulation/performance/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: project-service
|
||||
uri: lb://project
|
||||
predicates:
|
||||
- Path=/simulation/project/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: LYRIC_GROUP # 指定目标服务的分组
|
||||
- id: system-service
|
||||
uri: lb://system
|
||||
predicates:
|
||||
- Path=/simulation/system/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: LYRIC_GROUP # 指定目标服务的分组
|
||||
- id: task-service
|
||||
uri: lb://task
|
||||
predicates:
|
||||
- Path=/simulation/task/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: LYRIC_GROUP # 指定目标服务的分组
|
||||
- id: flowable-service
|
||||
uri: lb://flowable
|
||||
predicates:
|
||||
- Path=/simulation/flowable/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: LYRIC_GROUP # 指定目标服务的分组
|
||||
discovery:
|
||||
locator:
|
||||
enabled: true
|
||||
lower-case-service-id: true
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
group:
|
||||
readiness:
|
||||
include: discoveryComposite,ping,refreshScope
|
||||
health:
|
||||
redis:
|
||||
enabled: false
|
||||
db:
|
||||
enabled: false
|
||||
|
||||
logging:
|
||||
level:
|
||||
com.sdm.gateway2: INFO
|
||||
org.springframework.cloud.gateway: INFO
|
||||
reactor.netty: INFO
|
||||
|
||||
# 0单机处理,1负载均衡轮询
|
||||
serverType: 0
|
||||
serverIp: 192.168.30.148
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- aa
|
||||
141
pbs/src/main/resources/application-lyric.yml
Normal file
141
pbs/src/main/resources/application-lyric.yml
Normal file
@@ -0,0 +1,141 @@
|
||||
server:
|
||||
port: 7105
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: pbs
|
||||
datasource:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
# 设置连接池能够容纳的最大连接数。建议值:CPU核心数 * 2 + 有效磁盘I/O数。一个常见的经验值是 10-20。
|
||||
maximum-pool-size: 20
|
||||
# 连接池在空闲时保持的最小连接数。
|
||||
minimum-idle: 5
|
||||
# 一个连接在被标记为空闲之前可以保持空闲状态的最长时间(毫秒)。当连接的空闲时间超过此值后,它可能会被连接池 evict(驱逐)。
|
||||
idle-timeout: 60000 # 1 min
|
||||
# 一个连接从被创建开始,其生命周期的最大时长(毫秒)。HikariCP的默认值就是30分钟,这是一个非常合理的设置。
|
||||
max-lifetime: 1800000 # 30 min(Hikari 默认)
|
||||
# 应用程序尝试从连接池获取一个连接时,等待的最长时间(毫秒)。建议值:30-60秒。
|
||||
connection-timeout: 30000 # 30s
|
||||
master:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
slave:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
enable: true
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 192.168.30.146:8848
|
||||
group: LYRIC_GROUP
|
||||
enabled: true
|
||||
# namespace: 3
|
||||
# username: nacos
|
||||
# password: ENC(+QKYnI6gAYu1SbLaZQTkZA==)
|
||||
data:
|
||||
redis:
|
||||
# Redis默认情况下有16个分片(库),这里配置具体使用的分片,默认是0
|
||||
database: 0
|
||||
# redis服务器地址(填写自己的服务器地址)
|
||||
host: 192.168.30.145
|
||||
# redis端口(默认6379)
|
||||
port: 6379
|
||||
#redis连接超时等待,10秒
|
||||
timeout: PT10S
|
||||
# redis访问密码(默认为空)
|
||||
password:
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池最大连接数(使用负值表示没有限制) 默认 8
|
||||
max-active: 50
|
||||
# 连接池中的最大空闲连接 默认 8
|
||||
max-idle: 20
|
||||
# 连接池中的最小空闲连接 默认 0
|
||||
min-idle: 1
|
||||
# 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1,这里配置10s
|
||||
max-wait: PT10S
|
||||
# password:
|
||||
# sentinel:
|
||||
# master: mymaster
|
||||
# nodes: 10.18.109.50:26379,10.18.109.51:26379,10.18.109.52:26379
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件的最大值
|
||||
max-file-size: 500MB
|
||||
# 上传文件总的最大值
|
||||
max-request-size: 10240MB
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
auto-mapping-behavior: full
|
||||
# cache-enabled: true
|
||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
global-config:
|
||||
# 逻辑删除配置
|
||||
db-config:
|
||||
# 删除前
|
||||
logic-not-delete-value: 1
|
||||
# 删除后
|
||||
logic-delete-value: 0
|
||||
|
||||
#showSql
|
||||
#logging:
|
||||
# level:
|
||||
# com.sdm.dao: debug
|
||||
|
||||
lombok:
|
||||
anyConstructor:
|
||||
addConstructorProperties: true
|
||||
|
||||
file:
|
||||
rootPath: /data/home/sdm
|
||||
|
||||
hpc:
|
||||
url: http://172.27.3.135/JSONAPI/JSONAPI.ashx # 这个利元亨没用
|
||||
# 这个是spdm mock执行cmd命令
|
||||
# remoteCmdUrl: http://127.0.0.1:9097/doProcess
|
||||
# remote: hpc借助工具http远程调用,local:该服务和hpc部署在同一机器
|
||||
excuteWay: remote
|
||||
remoteCmdUrl: http://10.122.38.200:9097/doProcess
|
||||
remoteCreateDirUrl: http://10.122.38.200:9098/createDir
|
||||
remoteScanDirUrl: http://10.122.38.200:9098/scanDir
|
||||
remoteDownLoadFileUrl: http://10.122.38.200:9098/hpcDownload
|
||||
# remoteDownLoadFileUrl: http://127.0.0.1:9097/hpcDownload
|
||||
remoteUploadFileUrl: http://10.122.38.200:9098/uploadHpcFile
|
||||
callHpcUpload: http://10.122.38.200:9098/addJobQueue
|
||||
|
||||
|
||||
#logging:
|
||||
# config: ./config/logback.xml
|
||||
# pbs 作业提交相关配置
|
||||
pbs:
|
||||
task:
|
||||
hpc: hpc
|
||||
qusb: qusb
|
||||
impl: hpc
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- /pbs/jobFileCallback
|
||||
- /pbs/netTest
|
||||
- /pbs/adapterSubmitHpcJob
|
||||
126
project/src/main/resources/application-lyric.yml
Normal file
126
project/src/main/resources/application-lyric.yml
Normal file
@@ -0,0 +1,126 @@
|
||||
server:
|
||||
port: 7101
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: project
|
||||
datasource:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
# 设置连接池能够容纳的最大连接数。建议值:CPU核心数 * 2 + 有效磁盘I/O数。一个常见的经验值是 10-20。
|
||||
maximum-pool-size: 20
|
||||
# 连接池在空闲时保持的最小连接数。
|
||||
minimum-idle: 5
|
||||
# 一个连接在被标记为空闲之前可以保持空闲状态的最长时间(毫秒)。当连接的空闲时间超过此值后,它可能会被连接池 evict(驱逐)。
|
||||
idle-timeout: 60000 # 1 min
|
||||
# 一个连接从被创建开始,其生命周期的最大时长(毫秒)。HikariCP的默认值就是30分钟,这是一个非常合理的设置。
|
||||
max-lifetime: 1800000 # 30 min(Hikari 默认)
|
||||
# 应用程序尝试从连接池获取一个连接时,等待的最长时间(毫秒)。建议值:30-60秒。
|
||||
connection-timeout: 30000 # 30s
|
||||
master:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
slave:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
enable: true
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 192.168.30.146:8848
|
||||
enabled: true
|
||||
group: LYRIC_GROUP
|
||||
# username: nacos
|
||||
# password: ENC(+QKYnI6gAYu1SbLaZQTkZA==)
|
||||
data:
|
||||
redis:
|
||||
# Redis默认情况下有16个分片(库),这里配置具体使用的分片,默认是0
|
||||
database: 0
|
||||
# redis服务器地址(填写自己的服务器地址)
|
||||
host: 192.168.30.145
|
||||
# redis端口(默认6379)
|
||||
port: 6379
|
||||
#redis连接超时等待,10秒
|
||||
timeout: PT10S
|
||||
# redis访问密码(默认为空)
|
||||
password:
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池最大连接数(使用负值表示没有限制) 默认 8
|
||||
max-active: 50
|
||||
# 连接池中的最大空闲连接 默认 8
|
||||
max-idle: 20
|
||||
# 连接池中的最小空闲连接 默认 0
|
||||
min-idle: 1
|
||||
# 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1,这里配置10s
|
||||
max-wait: PT10S
|
||||
# password:
|
||||
# sentinel:
|
||||
# master: mymaster
|
||||
# nodes: 10.18.109.50:26379,10.18.109.51:26379,10.18.109.52:26379
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件的最大值
|
||||
max-file-size: 500MB
|
||||
# 上传文件总的最大值
|
||||
max-request-size: 10240MB
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
group:
|
||||
readiness:
|
||||
include: discoveryComposite,ping,refreshScope
|
||||
health:
|
||||
redis:
|
||||
enabled: false
|
||||
db:
|
||||
enabled: false
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
auto-mapping-behavior: full
|
||||
cache-enabled: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
global-config:
|
||||
# 逻辑删除配置
|
||||
db-config:
|
||||
# 删除前
|
||||
logic-not-delete-value: 1
|
||||
# 删除后
|
||||
logic-delete-value: 0
|
||||
|
||||
#showSql
|
||||
logging:
|
||||
level:
|
||||
com.sdm.dao: debug
|
||||
|
||||
lombok:
|
||||
anyConstructor:
|
||||
addConstructorProperties: true
|
||||
|
||||
file:
|
||||
rootPath: /data/home/sdm
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- /run/deliverableApproveCallback
|
||||
- /run/getSimulationKeyResultFileIds
|
||||
- /run/generateReportInternal
|
||||
#logging:
|
||||
# config: ./config/logback.xml
|
||||
180
system/src/main/resources/application-lyric.yml
Normal file
180
system/src/main/resources/application-lyric.yml
Normal file
@@ -0,0 +1,180 @@
|
||||
server:
|
||||
port: 7103
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: system
|
||||
datasource:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
# 设置连接池能够容纳的最大连接数。建议值:CPU核心数 * 2 + 有效磁盘I/O数。一个常见的经验值是 10-20。
|
||||
maximum-pool-size: 20
|
||||
# 连接池在空闲时保持的最小连接数。
|
||||
minimum-idle: 5
|
||||
# 一个连接在被标记为空闲之前可以保持空闲状态的最长时间(毫秒)。当连接的空闲时间超过此值后,它可能会被连接池 evict(驱逐)。
|
||||
idle-timeout: 60000 # 1 min
|
||||
# 一个连接从被创建开始,其生命周期的最大时长(毫秒)。HikariCP的默认值就是30分钟,这是一个非常合理的设置。
|
||||
max-lifetime: 1800000 # 30 min(Hikari 默认)
|
||||
# 应用程序尝试从连接池获取一个连接时,等待的最长时间(毫秒)。建议值:30-60秒。
|
||||
connection-timeout: 30000 # 30s
|
||||
master:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
slave:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
enable: true
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 192.168.30.146:8848
|
||||
group: LYRIC_GROUP
|
||||
# server-addr: 127.0.0.1:8848
|
||||
enabled: true
|
||||
data:
|
||||
redis:
|
||||
# Redis默认情况下有16个分片(库),这里配置具体使用的分片,默认是0
|
||||
database: 0
|
||||
# redis服务器地址(填写自己的服务器地址)
|
||||
host: 92.168.30.147
|
||||
# redis端口(默认6379)
|
||||
port: 6379
|
||||
#redis连接超时等待,10秒
|
||||
timeout: PT10S
|
||||
# redis访问密码(默认为空)
|
||||
password:
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池最大连接数(使用负值表示没有限制) 默认 8
|
||||
max-active: 50
|
||||
# 连接池中的最大空闲连接 默认 8
|
||||
max-idle: 20
|
||||
# 连接池中的最小空闲连接 默认 0
|
||||
min-idle: 1
|
||||
# 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1,这里配置10s
|
||||
max-wait: PT10S
|
||||
# password:
|
||||
# sentinel:
|
||||
# master: mymaster
|
||||
# nodes: 10.18.109.50:26379,10.18.109.51:26379,10.18.109.52:26379
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件的最大值
|
||||
max-file-size: 500MB
|
||||
# 上传文件总的最大值
|
||||
max-request-size: 10240MB
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
group:
|
||||
readiness:
|
||||
include: discoveryComposite,ping,refreshScope
|
||||
health:
|
||||
redis:
|
||||
enabled: false
|
||||
db:
|
||||
enabled: false
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
auto-mapping-behavior: full
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
# cache-enabled: true
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
global-config:
|
||||
# 逻辑删除配置
|
||||
db-config:
|
||||
# 删除前
|
||||
logic-not-delete-value: 1
|
||||
# 删除后
|
||||
logic-delete-value: 0
|
||||
|
||||
# MyBatis SQL日志配置
|
||||
logging:
|
||||
level:
|
||||
com.baomidou.mybatisplus.core.MybatisConfiguration: debug
|
||||
com.baomidou.mybatisplus.core.override.MybatisMapperRegistry: trace
|
||||
com.sdm.data.mapper: debug
|
||||
java.sql: debug
|
||||
java.sql.Connection: debug
|
||||
java.sql.Statement: debug
|
||||
java.sql.PreparedStatement: debug
|
||||
|
||||
|
||||
lombok:
|
||||
anyConstructor:
|
||||
addConstructorProperties: true
|
||||
|
||||
file:
|
||||
rootPath: /data/home/sdm
|
||||
|
||||
|
||||
system:
|
||||
useCidSwitch: true
|
||||
|
||||
userSystem:
|
||||
cidUser: cid
|
||||
localUser: local
|
||||
|
||||
roleSystem:
|
||||
cidRole: cid
|
||||
localRole: local
|
||||
|
||||
tenantSystem:
|
||||
cidTenant: cid
|
||||
localTenant: local
|
||||
|
||||
cid:
|
||||
url: http://192.168.30.145:8989/honeycom-spdm # 请根据实际CID服务地址修改
|
||||
#url: http://192.168.65.75:8989/honeycom-spdm # 朱欣茹地址
|
||||
user:
|
||||
listUser: /spdm-user/listUser
|
||||
queryUserDetail: /spdm-user/queryUserDetail
|
||||
listUserByIds: /spdm-user/listUserByIds
|
||||
queryUserRole: /spdm-user/queryUserRole
|
||||
queryGroup: /spdm-user/queryGroup
|
||||
queryGroupDetail: /spdm-user/queryGroupDetail
|
||||
queryGroupMember: /spdm-user/queryGroupMember
|
||||
role:
|
||||
getRoleByRoleName: /spdm-role/getRoleByRoleName
|
||||
getRoleByRoleCode: /spdm-role/getRoleByRoleCode
|
||||
getRoleById: /spdm-role/getRoleById
|
||||
listRoles: /spdm-role/listRoles
|
||||
tenant:
|
||||
getTenantDetailById: /spdm-tenant/getTenantDetailById
|
||||
listTenant: /spdm-tenant/listTenant
|
||||
flow:
|
||||
launchApprove: /spdm-flow/startFlow
|
||||
queryFlowTemplate: /spdm-flow/listProcessByGroup
|
||||
queryApproveDetail: /spdm-flow/queryFlowNodeDetail
|
||||
stopApproveFlow: /spdm-flow/stopFlow
|
||||
group: SPDM
|
||||
# 单次批量查询cid审批流详情的条数
|
||||
batchCount: 500
|
||||
# 批量查询的cid 接口,配合上面url使用
|
||||
batchInterfacePath: /spdm-flow/listFlowNodeDetail
|
||||
msg:
|
||||
sendMessage: /spdm-msg/sendMessage
|
||||
log:
|
||||
saveLog: /spdm-log/saveLog
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- /systemApprove/approveStatusNotice
|
||||
- /user/getUserToken
|
||||
- /systemMsg/sendMessage
|
||||
130
task/src/main/resources/application-lyric.yml
Normal file
130
task/src/main/resources/application-lyric.yml
Normal file
@@ -0,0 +1,130 @@
|
||||
# 前后端联调使用该配置文件,本地调试使用local
|
||||
server:
|
||||
port: 7102
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: task
|
||||
datasource:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
# 设置连接池能够容纳的最大连接数。建议值:CPU核心数 * 2 + 有效磁盘I/O数。一个常见的经验值是 10-20。
|
||||
maximum-pool-size: 20
|
||||
# 连接池在空闲时保持的最小连接数。
|
||||
minimum-idle: 5
|
||||
# 一个连接在被标记为空闲之前可以保持空闲状态的最长时间(毫秒)。当连接的空闲时间超过此值后,它可能会被连接池 evict(驱逐)。
|
||||
idle-timeout: 60000 # 1 min
|
||||
# 一个连接从被创建开始,其生命周期的最大时长(毫秒)。HikariCP的默认值就是30分钟,这是一个非常合理的设置。
|
||||
max-lifetime: 1800000 # 30 min(Hikari 默认)
|
||||
# 应用程序尝试从连接池获取一个连接时,等待的最长时间(毫秒)。建议值:30-60秒。
|
||||
connection-timeout: 30000 # 30s
|
||||
master:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
slave:
|
||||
username: root
|
||||
password: mysql
|
||||
jdbc-url: jdbc:mysql://192.168.30.146:3306/spdm_baseline?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
enable: true
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 192.168.30.146:8848
|
||||
group: LYRIC_GROUP
|
||||
# server-addr: 127.0.0.1:8848
|
||||
enabled: true
|
||||
# username: nacos
|
||||
# password: ENC(+QKYnI6gAYu1SbLaZQTkZA==)
|
||||
data:
|
||||
redis:
|
||||
# Redis默认情况下有16个分片(库),这里配置具体使用的分片,默认是0
|
||||
database: 0
|
||||
# redis服务器地址(填写自己的服务器地址)
|
||||
host: 192.168.30.145
|
||||
# redis端口(默认6379)
|
||||
port: 6379
|
||||
#redis连接超时等待,10秒
|
||||
timeout: PT10S
|
||||
# redis访问密码(默认为空)
|
||||
password:
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池最大连接数(使用负值表示没有限制) 默认 8
|
||||
max-active: 50
|
||||
# 连接池中的最大空闲连接 默认 8
|
||||
max-idle: 20
|
||||
# 连接池中的最小空闲连接 默认 0
|
||||
min-idle: 1
|
||||
# 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1,这里配置10s
|
||||
max-wait: PT10S
|
||||
# password:
|
||||
# sentinel:
|
||||
# master: mymaster
|
||||
# nodes: 10.18.109.50:26379,10.18.109.51:26379,10.18.109.52:26379
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件的最大值
|
||||
max-file-size: 500MB
|
||||
# 上传文件总的最大值
|
||||
max-request-size: 10240MB
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
group:
|
||||
readiness:
|
||||
include: discoveryComposite,ping,refreshScope
|
||||
health:
|
||||
redis:
|
||||
enabled: false
|
||||
db:
|
||||
enabled: false
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
auto-mapping-behavior: full
|
||||
# cache-enabled: true
|
||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
global-config:
|
||||
# 逻辑删除配置
|
||||
db-config:
|
||||
# 删除前
|
||||
logic-not-delete-value: 1
|
||||
# 删除后
|
||||
logic-delete-value: 0
|
||||
|
||||
#showSql
|
||||
#logging:
|
||||
# level:
|
||||
# com.sdm.dao: debug
|
||||
|
||||
lombok:
|
||||
anyConstructor:
|
||||
addConstructorProperties: true
|
||||
|
||||
file:
|
||||
rootPath: /data/home/sdm
|
||||
scriptPath : /opt/script
|
||||
approve:
|
||||
replyUrl: http:192.168.30.148:7102/simulation/task/taskpool/approveHandleNotice
|
||||
#logging:
|
||||
# config: ./config/logback.xml
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- /taskpool/approveHandleNotice
|
||||
- /taskPerformance/getRunPerformance
|
||||
Reference in New Issue
Block a user