修改个人本地使用配置文件

This commit is contained in:
张秉卓
2025-11-06 16:56:59 +08:00
parent fbf15b6440
commit e7367055df

View File

@ -1,4 +1,74 @@
spring: spring:
#------------------自定义global配置------------------
# 环境 dev|test|prod
#profiles:
# active: dev
# jackson时间格式化
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
enabled: true
mvc:
throw-exception-if-no-handler-found: true
pathmatch:
matching-strategy: ant_path_matcher
#freemarker:
#template-loader-path: classpath:/templates/generateCode
#------------------自定义datasource配置------------------
autoconfigure:
#自动化配置 例外处理
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
datasource:
type: com.alibaba.druid.pool.DruidDataSource
dynamic:
primary: master
strict: true # 根据数据id找不到数据源报错抛异常
datasource:
master:
driver-class-name: com.kingbase8.Driver
url: jdbc:kingbase8://47.94.165.164:54322/itc?currentSchema=dne_sit
username: itc_dne
password: itc_dne
druid:
# 初始化大小
initialSize: 10
# 最大连接池
maxActive: 50
# 最小连接池
minIdle: 10
# 最大等待超时时间配置获取连接等待超时时间单位都是毫秒ms
maxWait: 60000
# 是否缓存preparedStatement也就是PSCache 官方建议MySQL下建议关闭 个人建议如果想用SQL防火墙 建议打开
poolPreparedStatements: true
# 最大PSCache缓存池
maxPoolPreparedStatementPerConnectionSize: 20
#配置间隔多久才进行一次检测,检测需要关闭的空闲连接
timeBetweenEvictionRunsMillis: 60000
#配置一个连接在池中最小生存的时间
minEvictableIdleTimeMillis: 120000
#配置一个连接在池中最大生存的时间
maxEvictableIdleTimeMillis: 180000
# 测试链接 语句
validationQuery: SELECT 1
# 空闲时检查连接
testWhileIdle: true
# 从连接池中取出时检查连接
testOnBorrow: false
# 归还到连接池时检查连接
testOnReturn: false
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
filters: stat,slf4j
# 合并多个DruidDataSource的监控数据
useGlobalDataSourceStat: true
# 启用 Keep-Alive 机制
keep-alive: true
keep-alive-between-time-millis: 1800000 # 30分钟
#------------------自定义datasource配置------------------
#------------------自定义global配置------------------
cloud: cloud:
nacos: #nacos监控 nacos: #nacos监控
config: config:
@ -8,25 +78,25 @@ spring:
username: nacos username: nacos
password: Lng@123 password: Lng@123
extension-configs: extension-configs:
- data-id: global-local.yml # - data-id: global-local.yml
refresh: true # refresh: true
group: DNE # group: DNE
# - data-id: discovery-local.yml # - data-id: discovery-local.yml
# refresh: true # refresh: true
# group: DNE # group: DNE
- data-id: datasource-local.yml # - data-id: datasource-local.yml
refresh: true # refresh: true
group: DNE # group: DNE
# - data-id: seata-local.yml # - data-id: seata-local.yml
# refresh: true # refresh: true
# group: DNE # group: DNE
- data-id: redis-local.yml # - data-id: redis-local.yml
refresh: true # refresh: true
group: DNE # group: DNE
- data-id: magic-api.yml - data-id: magic-api.yml
refresh: true refresh: true
@ -39,10 +109,10 @@ spring:
- data-id: camunda.yml - data-id: camunda.yml
refresh: true refresh: true
group: DNE group: DNE
#
- data-id: sentinel-local.yml # - data-id: sentinel-local.yml
refresh: true # refresh: true
group: DNE # group: DNE
#------------------自定义nacos的discovery配置------------------ #------------------自定义nacos的discovery配置------------------
discovery: discovery:
server-addr: 127.0.0.1:8848 server-addr: 127.0.0.1:8848
@ -51,6 +121,309 @@ spring:
username: nacos username: nacos
password: Lng@123 password: Lng@123
#------------------自定义nacos的discovery配置------------------ #------------------自定义nacos的discovery配置------------------
#------------------自定义sentinel配置------------------
sentinel:
transport:
dashboard: 172.19.3.230:8080 #sentinel dashboard 地址
port: 8719 #默认端口, 如果 被占用,会一直+1 直到未被占用为止
#------------------自定义sentinel配置------------------
#------------------自定义redis配置------------------
redis:
database: 0
host: 47.94.165.164
port: 9620
password: tdjj2HH0fva^2R # 密码(默认为空)
timeout: 60000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
#------------------自定义redis配置------------------
#------------------自定义global配置------------------
workflow:
selectNextUser:
timeout: 1 #选人超时时间单位s流程预审要设置为1立刻超时
schedule:
enabled: true
syncOrgAndUser:
enabled: true
logging:
config: http://${spring.cloud.nacos.config.server-addr}/nacos/v1/cs/configs?group=${spring.cloud.nacos.config.group}&tenant=${spring.cloud.nacos.config.namespace}&username=${spring.cloud.nacos.config.username}&password=${spring.cloud.nacos.config.password}&dataId=logback-spring.xml
level:
org.camunda: debug #打印camunda 日志 一般用于 查看camunda 执行sql
com.xjrsoft: debug
xjrsoft:
oss:
#enabled: true
cloud-type: minio
# access-key: xjrsoft
# secret-key: Xjrsoft9012@@
# endpoint: http://47.106.153.7:9000
# bucket-name: xjrsoft
# prefix: xjr
#阿里云
access-key: admin
secret-key: password123
endpoint: http://minio-api.ges.bjgastx.com:80
bucket-name: fcd2-ma
prefix: dev
job:
enabled: true # 执行器通讯TOKEN [必填]:是否启用定时任务功能;
accessToken: # 执行器通讯TOKEN [选填]:非空时启用;
admin:
addresses: http://xxl-job.ges.bjgastx.com/xxl-job-admin # 调度中心部署跟地址 [选填]:如调度中心集群部署存在多个地址则用逗号分隔。执行器将会使用该地址进行"执行器心跳注册"和"任务结果回调";为空则关闭自动注册;
executor:
address: # 执行器注册 [选填]:优先使用该配置作为注册地址,为空时使用内嵌服务 ”IP:PORT“ 作为注册地址。从而更灵活的支持容器类型执行器动态IP和动态映射端口问题。
appname: xjrsoft # 执行器AppName [选填]:执行器心跳注册分组依据;为空则关闭自动注册
ip: # 执行器IP [选填]默认为空表示自动获取IP多网卡时可手动设置指定IP该IP不会绑定Host仅作为通讯实用地址信息用于 "执行器注册" 和 "调度中心请求并触发任务"
port: 0 # 执行器端口号 [选填]小于等于0则自动获取默认端口为9999单机部署多个执行器时注意要配置不同执行器端口
log-path: /data/logs/xxl-job/job-logs # 执行器运行日志文件存储磁盘路径 [选填] :需要对该路径拥有读写权限;为空则使用默认路径;
log-retention-days: 30 # 执行器日志文件保存天数 [选填] 过期日志自动清理, 限制值大于等于3时生效; 否则, 如-1, 关闭自动清理功能;
# generate:
# #webPath: D:\pm\yfxm-newgit\front #生成代码的路径
# javaPath: F:\ges-scm\code\dev\geg-gas-pcitc\itc-pcitc-demo\itc-pcitc-demo-service
# webPath: D:\Users\ITC\Desktop\codeGenerate
# appPath: D:\pm\yfxm-newgit\uniapp\xjrsoft-uni #前端app
generate:
apiJavaPath: D:\dev\Git\Repository\GDNY\geg-gas-pcitc\itc-pcitc-mdm\itc-pcitc-mdm-api
javaPath: D:\dev\Git\Repository\GDNY\geg-gas-pcitc\itc-pcitc-mdm\itc-pcitc-mdm-service
webPath: D:\dev\Git\Repository\GDNY\geg-gas-pcitc\itc-pcitc-mdm\itc-pcitc-mdm-service
appPath: D:\dev\Git\Repository\GDNY\geg-gas-pcitc\itc-pcitc-mdm\itc-pcitc-mdm-service
tenant:
enabled: true #是否启用多租户
admin-tenant-code: system #管理员租户编码
tenant-field: tenant_id #多租户 区分字段enantCode
default-tenant-code: system
is-use-default-tenant: true
hidden-sub-menu-ids:
- 1419273699655498176
- 1700041673784094722
ignore-table: #忽略多租户的表
- xjr_app_func_design
- xjr_app_menu
- xjr_app_page_design
- xjr_area
- xjr_code_schema
- xjr_databaselink
- xjr_language
- xjr_language_type
- xjr_liteflow_chain
- xjr_liteflow_script
- xjr_menu
- xjr_menu_button
- xjr_menu_column
- xjr_menu_form
- xjr_report
- xjr_report_relation
- xjr_subsystem
- xjr_tenant
- xjr_tenant_authorize
- xjr_app_menu_button
- xjr_app_menu_column
- xjr_app_menu_form
- xjr_app_authorize
- xjr_user
- xjr_department
- xjr_user_dept_relation
- xjr_authorize
- menu_tree
login:
checkCodeWidth: 360 #获取验证码前的校验码 图片宽度
checkCodeHeight: 120 #获取验证码前的校验码 图片高度
checkCodeCharCount: 6 #获取验证码前的校验码 字符数
checkCodeLinkCount: 20 #获取验证码前的校验码 干扰线条数
checkCodeEffectiveTime: 300 #获取手机验证码前的校验码的有效redis时长单位正整数 5分钟*60秒
common:
druid-account: admin # druid 监控账户
druid-password: admin # druid 监控密码
default-password: "000000" #默认密码(用户重置密码后为该密码)
error-type: SYSTEM
white-list:
- 192.168.0.139
exclude-urls:
- /favicon.ico #网站图标
- /webjars/** #swagger(knife4j) 接口文档必要资源
- /swagger-resources/** #swagger(knife4j) 接口文档必要资源
- /v2/api-docs #swagger(knife4j) 接口文档必要资源
- /doc.html #swagger(knife4j) 接口文档必要资源
- /druid/** #druid 监控
- /ureport/** #ureport报表
- /system/captcha # 验证码
- /system/captchaImg # 验证码图片 用于请求手机号码验证的前置判断 2025-02-12 新增登录用手机验证码的预先校验码生成
- /system/captchaImg-by-type # 验证码图片 用于请求手机号码验证的前置判断 2025-04-08 新增登录用账号登录的预先校验码生成
- /system/checkAccountCaptcha #2025-04-08 登录配置查询 拿着用户账号查询登录的是否需要验证码
- /system/login # 登录接口
- /system/login/** # 登录接口
- /system/logout # 登出接口
- /system/logoConfig/logo-info #登录之后加载图片的接口
- /camunda/** # camunda工作台
- /language/** # language
- ${magic-api.web}/** # magic-api web
- ${magic-api.prefix}/** # magic-api 前缀
- /bi/project/info # 桌面
- /system/qrcode-login # 扫码登录
- /oauth/callback/** #回调
- /ssotoken/**
- /client/system/tenant/getAvailableOne
- /system/checkAccountCaptcha
is-sa-token-method-annotation-enabled: true
email:
is_enabled: false
mail_default_server: https://mail.dms.yudean.com/ews/exchange.asmx
mail_suffix: dms.yudean.com # 邮箱后缀
#mail_suffix: qq.com # 邮箱后缀
username: 967711 # 用户域工号
password: UY!kT28Z # 用户域密码
host: #邮件服务器的SMTP地址可选默认为smtp.<发件人邮箱后缀>
port: # 邮件服务器的SMTP端口可选默认25
auth: true
from: # 发件人(必须正确,否则发送失败
user: # 用户名,默认为发件人邮箱前缀
pass: # 密码注意某些邮箱需要为SMTP服务单独设置授权码详情查看相关帮助
enabled_subSystem: true #是否开启子系统 (请勿修改)
enabledTenant: true #是否开启多租户
tenantAdminCode: admin #租户管理员编码
wechatenterprise:
appkey: ww00ce9acc4f193f18
appSecret: 5bYCMH3ULPHzyrJviIFWCIdX0OTyQoFqfnel_noyrwo
agentid: 1000005
redirectUri: http://www.tzx.test.com:8080/oauth/callback/wechat_enterprise
frontUrl: http://localhost:3100/#/login
dingtalk:
appkey: dingaex2gok1rllumlqs
appSecret: Nv2pe-UoR0Z_Iw8d29laZfL3kH6ElmhZpRdPwI7SvmKJmaCI29qCrSlFEiMM88MB
agentid: 839967779
redirectUri: http://www.tzx.test.com:8080/oauth/callback/dingtalk
frontUrl: http://localhost:3100/#/login
ureport:
account: xjrsoft #ureport 账号
password: 123456 #ureport 密码
keycloak:
url: http://192.168.0.221:12829/auth/
realm: test
client-id: tzx-java
secret: yo5kPZlHgmodz4vVASH61zq8i6gMhkk2
user-name: tzx #如果不需要后端再次 可以不需要
password: "000000" #可以不需要
payload: code #从payload 某个key中取值 登录
chatgpt:
proxy-type: 0 # 不开启代理 == -1 http == 0 socket == 1
proxy: 192.168.0.220
port: 1081
api-key: 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 #your api-key. It can be generated in the link https://beta.openai.com/docs/quickstart/adjust-your-settings
# some properties as below have default values. Of course, you can change them.
max-tokens: 4000 # The maximum number of tokens to generate in the completion.The token count of your prompt plus max_tokens cannot exceed the model's context length. Most models have a context length of 2048 tokens (except for the newest models, which support 4096).
# model: text-davinci-003 # GPT-3 models can understand and generate natural language. We offer four main models with different levels of power suitable for different tasks. Davinci is the most capable model, and Ada is the fastest.
# temperature: 0.0 # What sampling temperature to use. Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 (argmax sampling) for ones with a well-defined answer.We generally recommend altering this or top_p but not both.
# top-p: 1.0 # An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.We generally recommend altering this or temperature but not both.
sms:
platform: GEG_CLOUD #默认使用短信服务商
captcha-sender: 8823053028920 #验证码通道号
captcha-template-id: 97c6fcf9fd0149b39c0ed0e53480116f # 验证码 模板id
notify-sender: 8823053111843 # 提示类提示短信 通道号
notify-template-id: d424de0f2a9244ac9d2f2685cd158635 #提示类短信 模板id
circulated-sender: 8823053111843 # 提示类传阅短信 通道号
circulated-template-id: 5c179070a72447c79568ac22371be803 #提示类传阅短信 模板id
timeout-sender: 8823053111843 # 提示类短超时信 通道号
timeout-template-id: 5c179070a72447c79568ac22371be803 #提示类超时短信 模板id
expire: 300 #有效时长五分钟
send-sms-limit-time: 5 #单个号码短信轮滚(单位:分钟,正整数) 2025-02-12 新增登录短信下发的频次控制
send-sms-limit-count: 3 #单个号码短信轮滚下发限制次数与sendSmsLimitTime一起使用限制时长内允许发送的次数 2025-02-12 新增登录短信下发的频次控制
# 粤电集团短信平台配置
gdyd:
service_url: http://webservices.gdyd.com
service_part: SMSInteWebService
wsdl_url: http://sms.gdyd.com/smsInte/services/SMSInteWebService?wsdl
dbIP: mas.gdyd.com
dbUser: eipm3test
dbPwd: eipm3testPSW
apiCode: eipm3test
dbName: mas
license:
enabled: false #是否需要验证
login-max: 100 #最大登陆人数
start-time: 2023-07-01 00:00:00 #开始时间
end-time: 2023-07-03 17:00:00 #结束时间
company-name: xxx #公司名
contact-number: xxx #联系人
# 互信token密钥
token_secret_key: pK9WM85TTweSnlckk1uJ80rX8cuzDegk
# 前端地址路由url+端口
openLoginLog: true # 是否开启互信方式登录的 秘钥解密算法 中间参数的日志
changeLog:
enabled: false #是否开启表单修改记录功能
dist:
pc_url: http://10.0.252.5:3100
mobile_url: http://10.133.96.101:8077/app
config: gdyd-fcd-xfj
pc_config: xfj-fcd-pc
url: data/gdyd/trust/redirect2
tenant_code_name: tenantCode
sso_cron: 0 0/30 * * * ?
type_name: 新能源 #系统名或者模块名
data-center:
url: https://10.4.116.9:18199/data-service/gateway/v3.0/data-service/scroll/1236365572350097390
userId: 5fb73ca9f5214ad08e61ae14675c5d86
deptId: f03595d8b1fe4de798dd34a58ff52506
subscribeId: 1236365572350098016
accessToken: 8b5401d2431f4fb88cc30062d0c49b0d
whitelist: .jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.zip,.rar,.7z,.mp3,.mp4,.avi,.mov,.wmv,.flv,.ogg,.ogv,.webm,.wps,.wpt,.doc,.dot,.xls,.xlt,.csv,.txt,.ppt,.dps,.dpt,.json,.ofd
organization:
mergeGroupRoles2Role: true
powerjob:
worker:
enabled: false
app-name: xjrsoft-boot
server-address: 192.168.0.124:7700
protocol: http
store-strategy: disk
max-result-length: 4096
max-appended-wf-context-length: 4096
max-lightweight-task-num: 1024
# 验证码配置
#smst:
# sp: huawei # 短信服务商huawei(华为),ali(阿里巴巴),tencent(腾讯)
# url: https://smsapi.cn-north-4.myhuaweicloud.com:443/sms/batchSendSms/v1 # APP接入地址+接口访问URI
# app_key: 69s6YyLsrLgWW99BJ5K1K26WiF29
# secret_id: RuE1YajkI6FC4Gh2WjVtOpychRGL # API秘钥
# secret_key: RuE1YajkI6FC4Gh2WjVtOpychRGL # 目前只有腾讯用到
# sender: 8823053028920 # 验证码类发送人手机号通道号
# message_sender: 8823053111843 # 通知类发送人手机号通道号
# signature: # 签名名称
# region: default # 地区名阿里和腾讯需要配置默认default
# templates:
# - type: login # 手机登录验证 模板ID keys是短信模板内容中的参数名只有阿里的短信模板需要key去填充其他两个则是传入的数组参数顺序填充
# id: 97c6fcf9fd0149b39c0ed0e53480116f
# keys: code
# - type: reset # 忘记密码-验证手机号码 模板ID
# id: 614a2cd08b704cf393321e1df054e3df
# keys: code
# - type: message # 消息管理发送短信通道码
# id: d424de0f2a9244ac9d2f2685cd158635
# keys: code
cas:
enable: false
#前端路由是hash模式的使用这两个配置需要配合nginx使用否则会跨域
client-service-url: http://10.133.96.105:3800/api/
success-redirect-url: http://10.133.96.105:3800/#/tokenLogin
#前端路由是history模式的只需要使用这个配置一般用于开发时调试
#client-service-url: http://10.133.96.105:3700/tokenLogin
datalog:
db:
url: jdbc:kingbase8://47.94.165.164:54322/itc?currentSchema=data_log_sit
#------------------自定义global配置------------------
#------------------自定义seata配置------------------ #------------------自定义seata配置------------------
seata: seata:
enable: true enable: true
@ -84,10 +457,4 @@ seata:
password: ${spring.cloud.nacos.config.password} password: ${spring.cloud.nacos.config.password}
data-id: seataServer.properties data-id: seataServer.properties
#------------------自定义seata配置------------------ #------------------自定义seata配置------------------
xjrsoft:
generate:
apiJavaPath: D:\dev\Git\Repository\GDNY\geg-gas-pcitc\itc-pcitc-mdm\itc-pcitc-mdm-api
javaPath: D:\dev\Git\Repository\GDNY\geg-gas-pcitc\itc-pcitc-mdm\itc-pcitc-mdm-service
webPath: D:\dev\Git\Repository\GDNY\geg-gas-pcitc\itc-pcitc-mdm\itc-pcitc-mdm-service
appPath: D:\dev\Git\Repository\GDNY\geg-gas-pcitc\itc-pcitc-mdm\itc-pcitc-mdm-service
#------------------自定义内容,如果误提交,需要回退------------------ #------------------自定义内容,如果误提交,需要回退------------------