application.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # 项目相关配置
  2. gyee:
  3. #API访问ip
  4. #swaggerip: 192.168.56.1:8170
  5. swaggerip: 192.168.2.216:8170
  6. server:
  7. port: 8170
  8. spring:
  9. application:
  10. name: monitor-web-hb-consumer
  11. cloud:
  12. nacos:
  13. discovery:
  14. server-addr: 192.168.56.1:8848
  15. #server-addr: 192.168.2.216:8848
  16. #指定yaml格式的配置
  17. file-extension: yaml
  18. cluster-name: master
  19. username: nacos
  20. password: nacos
  21. #redis集群
  22. redis:
  23. #host: 10.83.68.94
  24. host: 192.168.2.202
  25. # host: 10.155.32.4
  26. password:
  27. port: 6379
  28. timeout: 100000
  29. # 集群环境打开下面注释,单机不需要打开
  30. # cluster:
  31. # 集群信息
  32. # nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
  33. # #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
  34. # maxRedirects: 3
  35. application:
  36. name: test
  37. jedis:
  38. pool:
  39. max-active: 8
  40. min-idle: 0
  41. max-idle: 8
  42. max-wait: -1
  43. database: 19
  44. autoconfigure:
  45. exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
  46. datasource:
  47. type: com.alibaba.druid.pool.DruidDataSource
  48. driver-class-name: oracle.jdbc.OracleDriver
  49. #外网
  50. url: jdbc:oracle:thin:@10.0.118.71:1521:gdsj
  51. # url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
  52. username: gdprod
  53. password: gd123
  54. oracle-schema=:
  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
  93. url:
  94. benchmaring: http://192.168.2.216:8081
  95. analysis: http://192.168.2.216:8082
  96. feign:
  97. client:
  98. config:
  99. default:
  100. read-timeout: 60000
  101. connect-timeout: 60000
  102. provider:
  103. url: http://192.168.56.1:8171/
  104. #url: http://192.168.2.216:8171/
  105. management:
  106. endpoints:
  107. jmx:
  108. exposure:
  109. include: "*"
  110. web:
  111. exposure:
  112. include: "*"
  113. endpoint:
  114. health:
  115. show-details: always