application-hf.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.0.118.73:8848
  14. #指定yaml格式的配置
  15. file-extension: yaml
  16. cluster-name: master
  17. username: nacos
  18. password: nacos
  19. #redis集群
  20. # redis:
  21. # # host: 10.83.68.94
  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: 1
  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: oracle.jdbc.OracleDriver
  46. #外网
  47. url: jdbc:oracle:thin:@10.0.118.71:1521:gdsj
  48. # url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
  49. username: gdprod
  50. password: gd123
  51. oracle-schema=:
  52. druid:
  53. max-active: 20
  54. initial-size: 1
  55. min-idle: 3
  56. max-wait: 60000
  57. time-between-eviction-runs-millis: 60000
  58. min-evictable-idle-time-millis: 300000
  59. test-while-idle: true
  60. test-on-borrow: false
  61. test-on-return: false
  62. servlet:
  63. multipart:
  64. # 开启 multipart 上传功能
  65. enabled: true
  66. # 文件写入磁盘的阈值
  67. file-size-threshold: 2KB
  68. # 最大文件大小
  69. max-file-size: 200MB
  70. # 最大请求大小
  71. max-request-size: 215MB
  72. # feign调用超时时间配置
  73. feign:
  74. client:
  75. config:
  76. default:
  77. connectTimeout: 60000
  78. readTimeout: 600000
  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. mapper-locations: classpath*:mapper/**/*Mapper.xml
  85. global-config:
  86. # 逻辑删除配置
  87. db-config:
  88. id-type: auto
  89. # 删除前
  90. logic-not-delete-value: 1
  91. # 删除后
  92. logic-delete-value: 0
  93. logging:
  94. level:
  95. root: info
  96. com.example: debug