application-prod.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. server:
  2. port: 8084
  3. servlet:
  4. context-path: /costAccount
  5. spring:
  6. datasource:
  7. type: com.zaxxer.hikari.HikariDataSource
  8. driver-class-name: com.mysql.cj.jdbc.Driver
  9. url: jdbc:mysql://172.20.218.234:3306/cost_account_youyi?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  10. username: root
  11. password: xywl2021!
  12. hikari:
  13. maximum-pool-size: 15
  14. minimum-idle: 5
  15. idle-timeout: 300000
  16. connection-timeout: 300000
  17. max-lifetime: 180000
  18. auto-commit: true
  19. connection-test-query: SELECT 1
  20. application:
  21. name: kcim-cost
  22. cloud:
  23. nacos: #注册nacos
  24. discovery:
  25. service: ${spring.application.name}
  26. server-addr: 120.27.235.181:8848
  27. group: prod
  28. namespace: 1814ad0c-58c5-4de8-a786-6f12aee361cd
  29. #namespace: 060cc0fe-193f-4a94-bbca-6d48a4f95ac2
  30. #group: dev
  31. # sentinel:
  32. # enabled: true
  33. # transport:
  34. # port: 8719
  35. # dashboard: 172.20.218.233:8080
  36. jackson:
  37. date-format: yyyy-MM-dd HH:mm:ss
  38. time-zone: GMT+8
  39. # default-property-inclusion: non_null
  40. #redis
  41. redis:
  42. port: 6379
  43. host: 172.20.218.234
  44. password: xywl2021!
  45. jedis:
  46. pool:
  47. max-active: 30
  48. max-idle: 10
  49. max-wait: -1
  50. min-idle: 0
  51. database: 1
  52. servlet:
  53. multipart:
  54. max-file-size: 10MB
  55. max-request-size: 20MB
  56. mybatis-plus:
  57. mapper-locations: classpath*:/mapper/*.xml
  58. type-aliases-package: com.kcim.model
  59. configuration:
  60. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  61. global-config:
  62. db-config:
  63. id-type: auto
  64. logic-not-delete-value: 0
  65. logic-delete-value: UNIX_TIMESTAMP(NOW()) * 1000
  66. banner: false
  67. enable-sql-runner: true
  68. #日志
  69. # log config
  70. logging:
  71. # config: classpath:log4j2.xml
  72. level:
  73. io.swagger.models.parameters.AbstractSerializableParameter: error
  74. org.springframework.web: error
  75. org.hibernate.SQL: debug
  76. org.hibernate.engine.QueryParameters: debug
  77. org.hibernate.engine.query.HQLQueryPlan: debug
  78. org.hibernate.type.descriptor.sql.BasicBinder: trace
  79. ####本地文件相关配置
  80. sa-token:
  81. jwt-secret-key: imedstic
  82. # kcim-oauth
  83. ## 前后端分离不设置会有奇怪的问题
  84. ## 默认采用的获取token 是从请求头默认名称为Sa-token的地方获取,如果没有会从Cookie中获取,会造成奇怪的问题!!
  85. token-name: token
  86. is-read-cookie: false
  87. is-read-body: false
  88. ##token 有效期 默认30天,到期强制登录
  89. timeout: 2592000
  90. ## 30分钟无操作就失效 不适用
  91. #activity-timeout: 1800
  92. # 配置 Sa-Token 单独使用的 Redis 连接
  93. alone-redis:
  94. # Redis数据库索引(默认为0) 先固定2,后续有钱开另外的单独的db
  95. database: 1
  96. # Redis服务器地址
  97. host: 172.20.218.234
  98. # Redis服务器连接端口
  99. port: 6379
  100. # Redis服务器连接密码(默认为空)
  101. password: xywl2021!
  102. # 连接超时时间
  103. timeout: 10s
  104. is-log: false
  105. minio:
  106. url: http://47.97.198.219:9000
  107. port: 9000
  108. access-key: UOxpxcO0loqZqKzH
  109. secret-key: KfHhDLRWL0PtaWW0JTXqz6Gn685P2EWY
  110. bucket-name: kcim-cost