siwei-system-dev.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # spring配置
  2. spring:
  3. redis:
  4. host: 192.168.60.221
  5. port: 6379
  6. password:
  7. datasource:
  8. druid:
  9. stat-view-servlet:
  10. enabled: true
  11. loginUsername: ruoyi
  12. loginPassword: 123456
  13. dynamic:
  14. druid:
  15. initial-size: 5
  16. min-idle: 5
  17. maxActive: 20
  18. maxWait: 60000
  19. connectTimeout: 30000
  20. socketTimeout: 60000
  21. timeBetweenEvictionRunsMillis: 60000
  22. minEvictableIdleTimeMillis: 300000
  23. validationQuery: SELECT 1
  24. testWhileIdle: true
  25. testOnBorrow: false
  26. testOnReturn: false
  27. poolPreparedStatements: true
  28. maxPoolPreparedStatementPerConnectionSize: 20
  29. filters: stat,slf4j
  30. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  31. datasource:
  32. # 主库数据源
  33. # master:
  34. # driver-class-name: com.mysql.cj.jdbc.Driver
  35. # url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  36. # username: root
  37. # password: password
  38. master:
  39. driver-class-name: org.postgresql.Driver
  40. url: jdbc:postgresql://192.168.60.221:5432/postgres?currentSchema=cloud&reWriteBatchedInserts=true&useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
  41. username: postgres
  42. password: postgis
  43. # 从库数据源
  44. # slave:
  45. # username:
  46. # password:
  47. # url:
  48. # driver-class-name:
  49. # mybatis配置
  50. mybatis:
  51. # 搜索指定包别名
  52. typeAliasesPackage: com.siwei.system
  53. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  54. mapperLocations: classpath:mapper/postgresql/**/*.xml
  55. # springdoc配置
  56. springdoc:
  57. gatewayUrl: http://localhost:8080/${spring.application.name}
  58. api-docs:
  59. # 是否开启接口文档
  60. enabled: true
  61. info:
  62. # 标题
  63. title: '系统模块接口文档'
  64. # 描述
  65. description: '系统模块接口描述'
  66. # 作者信息
  67. contact:
  68. name: RuoYi
  69. url: https://ruoyi.vip