123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- # spring配置
- spring:
- redis:
- host: 10.16.4.12
- port: 6379
- password:
- database: 10
- datasource:
- druid:
- stat-view-servlet:
- enabled: true
- loginUsername: admin
- loginPassword: 123456
- allow:
- dynamic:
- druid:
- initial-size: 5
- min-idle: 5
- maxActive: 20
- maxWait: 60000
- timeBetweenEvictionRunsMillis: 60000
- minEvictableIdleTimeMillis: 300000
- validationQuery: SELECT 1 FROM DUAL
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- poolPreparedStatements: true
- maxPoolPreparedStatementPerConnectionSize: 20
- filters: stat,wall,slf4j
- connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
- datasource:
- # 主库数据源
- master:
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://121.36.73.159:56612/ceshi-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
- username: dev
- password: sckj2022@123
- # 从库数据源
- slave:
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://121.36.73.159:56612/ceshi-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
- username: dev
- password: sckj2022@123
- # seata: true # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
- # seata配置
- seata:
- # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启
- enabled: false
- # Seata 应用编号,默认为 ${spring.application.name}
- application-id: ${spring.application.name}
- # Seata 事务组编号,用于 TC 集群名
- tx-service-group: ${spring.application.name}-group
- # 关闭自动代理
- enable-auto-data-source-proxy: false
- # 服务配置项
- service:
- # 虚拟组和分组的映射
- vgroup-mapping:
- ruoyi-system-group: default
- config:
- type: nacos
- nacos:
- serverAddr: 172.17.0.1:8748
- group: SEATA_GROUP
- namespace:
- registry:
- type: nacos
- nacos:
- application: seata-server
- server-addr: 172.17.0.1:8748
- namespace:
- # mybatis配置
- mybatis:
- # 搜索指定包别名
- typeAliasesPackage: com.ruoyi.education
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
- mapperLocations: classpath:mapper/**/*.xml
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- # swagger配置
- swagger:
- title: 代码生成接口文档
- license: Powered By ruoyi
- licenseUrl: https://ruoyi.vip
- #微信小程序配置
- wx:
- eduApp: wxca8d0b33f3ab66fb
- messageTemplate: We-jIu1TG7PAKNqlJpe97kI-4xOWyuiHuxYjF7a7Yn4,KOdOmgksakH8_JciGZ0XnpYfwR9ylUwmm0dSXjtCXr0,mRskj-kKFY1n_-x8TW-PmZIEqVCDyIrokhh6i2EgHbQ
- miniapp:
- configs:
- - appid: wxca8d0b33f3ab66fb
- secret: 3891a1e73e82f7703f3b3e7d7aa95bc3
- token: #微信小程序消息服务器配置的token
- aesKey: #微信小程序消息服务器配置的EncodingAESKey
- msgDataFormat: JSON
- #腾讯云
- tencentcloud:
- secretId: AKIDUnqc7LK2TdW9UYQ1LOAftqVv3uUptgCR
- secretKey: zh8IBoDLDo79uPdaGgofFZcOt62i7F6g
- SDKAppID: 1400619182
- SDKAppKey: 26f173bacde11c7868dedb11cd7b1190
- #短信签名
- sign: 吉林长春社区干部学院
- #短信模板
- templateId: 1269405
- #短信失效时间
- effectiveTime: 5
- # 本地文件上传
- file:
- domain: http://172.17.0.1:9300
- path: /home/ruoyi/uploadPath
- prefix: /statics
|