2
0

application-dev.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. server:
  2. port: 8082
  3. spring:
  4. application:
  5. name: costAccount
  6. datasource:
  7. druid:
  8. driver-class-name: com.mysql.jdbc.Driver
  9. url: jdbc:mysql://112.124.59.133:3306/cost_account?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  10. # url: jdbc:mysql://127.0.0.1:3306/cost_account?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  11. username: root
  12. password: xywl2021#@!
  13. initial-size: 10
  14. max-active: 100
  15. min-idle: 10
  16. max-wait: 600000
  17. pool-prepared-statements: true
  18. max-pool-prepared-statement-per-connection-size: 20
  19. time-between-eviction-runs-millis: 60000
  20. min-evictable-idle-time-millis: 300000
  21. type: com.alibaba.druid.pool.DruidDataSource
  22. jackson:
  23. date-format: yyyy-MM-dd hh:mm:ss
  24. time-zone: GMT+8
  25. # default-property-inclusion: non_null
  26. #redis
  27. redis:
  28. port: 6379
  29. host: 112.124.59.133
  30. password: xywl2021!
  31. jedis:
  32. pool:
  33. max-active: 30
  34. max-idle: 10
  35. max-wait: -1
  36. min-idle: 0
  37. mybatis-plus:
  38. mapper-locations: classpath*:/mapper/*.xml
  39. type-aliases-package: com.imed.costaccount.model
  40. configuration:
  41. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  42. global-config:
  43. db-config:
  44. id-type: auto
  45. logic-not-delete-value: 0
  46. logic-delete-value: UNIX_TIMESTAMP(NOW()) * 1000
  47. banner: false
  48. #日志
  49. # log config
  50. logging:
  51. config: classpath:log4j2.xml
  52. level:
  53. io.swagger.models.parameters.AbstractSerializableParameter: error
  54. ####本地文件相关配置
  55. file:
  56. #Windows
  57. # filelocal: file:D:\\file\\
  58. #linux
  59. filelocal: file:/image/
  60. #linux
  61. # serverPath: /image
  62. #windows
  63. serverPath: D://file
  64. #local
  65. # serverUrl: http://112.124.59.133:8082//
  66. #linux
  67. serverUrl: http://112.124.59.133:8082/