application-test.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. server:
  2. port: 7020
  3. servlet:
  4. context-path: /
  5. spring:
  6. application:
  7. name: run-economy
  8. main:
  9. allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
  10. # cloud:
  11. # nacos:
  12. # discovery:
  13. # server-addr: 10.81.3.155:8848
  14. # #指定yaml格式的配置
  15. # file-extension: yaml
  16. # cluster-name: master
  17. # username: nacos
  18. # password: nacos
  19. # #redis集群
  20. redis:
  21. host: 124.70.18.168
  22. port: 6379
  23. password: gdnxfd123
  24. timeout: 100000
  25. # # 集群环境打开下面注释,单机不需要打开
  26. # # cluster:
  27. # # 集群信息
  28. # # nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
  29. # # #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
  30. # # maxRedirects: 3
  31. # password:
  32. # application:
  33. # name: test
  34. # jedis:
  35. # pool:
  36. # max-active: 8
  37. # min-idle: 0
  38. # max-idle: 8
  39. # max-wait: -1
  40. # database: 0
  41. autoconfigure:
  42. exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
  43. datasource:
  44. type: com.alibaba.druid.pool.DruidDataSource
  45. driver-class-name: org.postgresql.Driver
  46. # url: jdbc:postgresql://192.168.11.248:5432/IMS_NEM_SD #IMS_NEM_SD
  47. # username: postgres
  48. # password: postgres
  49. #华为云测试地址
  50. url: jdbc:postgresql://124.70.75.91:5432/jn_test #IMS_NEM_SD
  51. username: postgres
  52. password: gd123
  53. oracle-schema=:
  54. # type: com.alibaba.druid.pool.DruidDataSource
  55. # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
  56. # username: root
  57. # password: root
  58. # driver-class-name: com.mysql.jdbc.Driver
  59. druid:
  60. max-active: 20
  61. initial-size: 1
  62. min-idle: 3
  63. max-wait: 60000
  64. time-between-eviction-runs-millis: 60000
  65. min-evictable-idle-time-millis: 300000
  66. test-while-idle: true
  67. test-on-borrow: false
  68. test-on-return: false
  69. servlet:
  70. multipart:
  71. # 开启 multipart 上传功能
  72. enabled: true
  73. # 文件写入磁盘的阈值
  74. file-size-threshold: 2KB
  75. # 最大文件大小
  76. max-file-size: 200MB
  77. # 最大请求大小
  78. max-request-size: 215MB
  79. mybatis-plus:
  80. configuration:
  81. map-underscore-to-camel-case: true
  82. auto-mapping-behavior: full
  83. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  84. default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler
  85. mapper-locations: classpath*:mapper/**/*Mapper.xml
  86. global-config:
  87. # 逻辑删除配置
  88. db-config:
  89. #id-type: auto
  90. # 删除前
  91. logic-not-delete-value: 1
  92. # 删除后
  93. logic-delete-value: 0
  94. #table-prefix: t_
  95. id-type: assign_uuid
  96. #配置类型别名对应的包
  97. type-aliases-package: com.gyee.backconfig.model.auto
  98. #用于扫描通用枚举包
  99. type-enums-package: com.gyee.backconfig.config
  100. logging:
  101. level:
  102. root: info
  103. com.example: debug