application-jn.yml 3.1 KB

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