application-jn.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. server:
  2. port: 8081
  3. servlet:
  4. context-path: /
  5. spring:
  6. application:
  7. name: benchmarking-provider
  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: 10.81.3.155
  22. # host: 192.168.2.202
  23. port: 6379
  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: 19
  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://10.81.3.151:5432/wisdom
  47. username: gdprod
  48. password: gd123
  49. oracle-schema=:
  50. # type: com.alibaba.druid.pool.DruidDataSource
  51. # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
  52. # username: root
  53. # password: root
  54. # driver-class-name: com.mysql.jdbc.Driver
  55. druid:
  56. max-active: 20
  57. initial-size: 1
  58. min-idle: 3
  59. max-wait: 60000
  60. time-between-eviction-runs-millis: 60000
  61. min-evictable-idle-time-millis: 300000
  62. test-while-idle: true
  63. test-on-borrow: false
  64. test-on-return: false
  65. servlet:
  66. multipart:
  67. # 开启 multipart 上传功能
  68. enabled: true
  69. # 文件写入磁盘的阈值
  70. file-size-threshold: 2KB
  71. # 最大文件大小
  72. max-file-size: 200MB
  73. # 最大请求大小
  74. max-request-size: 215MB
  75. mybatis-plus:
  76. configuration:
  77. map-underscore-to-camel-case: true
  78. auto-mapping-behavior: full
  79. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  80. mapper-locations: classpath*:mapper/**/*Mapper.xml
  81. global-config:
  82. # 逻辑删除配置
  83. db-config:
  84. id-type: auto
  85. # 删除前
  86. logic-not-delete-value: 1
  87. # 删除后
  88. logic-delete-value: 0
  89. logging:
  90. level:
  91. root: info
  92. com.example: debug