application-jn.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. server:
  2. port: 8020
  3. servlet:
  4. context-path: /
  5. spring:
  6. application:
  7. name: consumer
  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. druid:
  51. max-active: 20
  52. initial-size: 1
  53. min-idle: 3
  54. max-wait: 60000
  55. time-between-eviction-runs-millis: 60000
  56. min-evictable-idle-time-millis: 300000
  57. test-while-idle: true
  58. test-on-borrow: false
  59. test-on-return: false
  60. servlet:
  61. multipart:
  62. # 开启 multipart 上传功能
  63. enabled: true
  64. # 文件写入磁盘的阈值
  65. file-size-threshold: 2KB
  66. # 最大文件大小
  67. max-file-size: 200MB
  68. # 最大请求大小
  69. max-request-size: 215MB
  70. # feign调用超时时间配置
  71. feign:
  72. client:
  73. config:
  74. default:
  75. connectTimeout: 60000
  76. readTimeout: 600000
  77. mybatis-plus:
  78. configuration:
  79. map-underscore-to-camel-case: true
  80. auto-mapping-behavior: full
  81. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  82. mapper-locations: classpath*:mapper/**/*Mapper.xml
  83. global-config:
  84. # 逻辑删除配置
  85. db-config:
  86. id-type: auto
  87. # 删除前
  88. logic-not-delete-value: 1
  89. # 删除后
  90. logic-delete-value: 0
  91. logging:
  92. level:
  93. root: info
  94. com.example: debug