application.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. server:
  2. port: 8020
  3. spring:
  4. application:
  5. name: monitor-web-hb-consumer
  6. cloud:
  7. nacos:
  8. discovery:
  9. server-addr: 10.0.118.99:8848
  10. #指定yaml格式的配置
  11. file-extension: yaml
  12. cluster-name: master
  13. username: nacos
  14. password: nacos
  15. #redis集群
  16. redis:
  17. # host: 10.83.68.94
  18. host: 123.60.213.70
  19. # host: 10.155.32.4
  20. password: gdnxfd123
  21. port: 6379
  22. timeout: 100000
  23. # 集群环境打开下面注释,单机不需要打开
  24. # cluster:
  25. # 集群信息
  26. # nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
  27. # #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
  28. # maxRedirects: 3
  29. application:
  30. name: test
  31. jedis:
  32. pool:
  33. max-active: 8
  34. min-idle: 0
  35. max-idle: 8
  36. max-wait: -1
  37. database: 1
  38. autoconfigure:
  39. exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
  40. datasource:
  41. type: com.alibaba.druid.pool.DruidDataSource
  42. driver-class-name: oracle.jdbc.OracleDriver
  43. #外网
  44. url: jdbc:oracle:thin:@10.0.118.71:1521:gdsj
  45. # url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
  46. username: gdprod
  47. password: gd123
  48. oracle-schema=:
  49. druid:
  50. max-active: 20
  51. initial-size: 1
  52. min-idle: 3
  53. max-wait: 60000
  54. time-between-eviction-runs-millis: 60000
  55. min-evictable-idle-time-millis: 300000
  56. test-while-idle: true
  57. test-on-borrow: false
  58. test-on-return: false
  59. servlet:
  60. multipart:
  61. # 开启 multipart 上传功能
  62. enabled: true
  63. # 文件写入磁盘的阈值
  64. file-size-threshold: 2KB
  65. # 最大文件大小
  66. max-file-size: 200MB
  67. # 最大请求大小
  68. max-request-size: 215MB
  69. mybatis-plus:
  70. configuration:
  71. map-underscore-to-camel-case: true
  72. auto-mapping-behavior: full
  73. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  74. mapper-locations: classpath*:mapper/**/*Mapper.xml
  75. global-config:
  76. # 逻辑删除配置
  77. db-config:
  78. id-type: auto
  79. # 删除前
  80. logic-not-delete-value: 1
  81. # 删除后
  82. logic-delete-value: 0
  83. logging:
  84. level:
  85. root: info
  86. com.example: debug
  87. url:
  88. benchmaring: http://192.168.2.216:8081
  89. analysis: http://192.168.2.216:8082
  90. feign:
  91. client:
  92. config:
  93. monitor-web-hb-provider:
  94. read-timeout: 60000
  95. connect-timeout: 60000
  96. management:
  97. endpoints:
  98. jmx:
  99. exposure:
  100. include: "*"
  101. web:
  102. exposure:
  103. include: "*"
  104. endpoint:
  105. health:
  106. show-details: always