前端-胡立永 1 month ago
parent
commit
a55963fc2e
2 changed files with 16 additions and 6 deletions
  1. +15
    -5
      java-api/ruoyi-admin/src/main/resources/application-dev.yml
  2. +1
    -1
      java-api/ruoyi-admin/src/main/resources/application.yml

+ 15
- 5
java-api/ruoyi-admin/src/main/resources/application-dev.yml View File

@ -55,9 +55,11 @@ spring:
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
# url: jdbc:mysql://175.178.45.24:3306/hanhai-official-website?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
url: jdbc:mysql://localhost:3306/hanhai-official-website?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
# url: jdbc:mysql://localhost:3306/hanhai-official-website?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
url: jdbc:mysql://42.194.239.145:3306/hanhai-official-website?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
username: root
password: 123456
# password: 123456
password: I5+sHYZQ
# password: enu&g016
# 从库数据源
slave:
@ -107,13 +109,13 @@ spring.data:
redis:
# 地址
# host: 192.168.1.173
host: 175.178.45.24
host: 42.194.239.145
# 端口,默认为6379
port: 6379
# 数据库索引
database: 11
database: 13
# redis 密码必须配置
password: hhlm@1688520
password: 'lzx.123456'
# 连接超时时间
timeout: 10s
# 是否开启ssl
@ -272,3 +274,11 @@ justauth:
client-id: 10**********6
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${justauth.address}/social-callback?source=gitlab
server:
port: 8000
servlet:
# 应用的访问路径
context-path: /

+ 1
- 1
java-api/ruoyi-admin/src/main/resources/application.yml View File

@ -25,7 +25,7 @@ server:
port: 8000
servlet:
# 应用的访问路径
context-path: /official
context-path: /
# undertow 配置
undertow:
# HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的


Loading…
Cancel
Save