application-test.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. server:
  2. # port: 8089
  3. # servlet:
  4. # context-path: /
  5. # 服务器的HTTP端口,默认为8080
  6. port: 8089
  7. servlet:
  8. # 应用的访问路径
  9. context-path: /
  10. # undertow 配置
  11. undertow:
  12. # HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
  13. max-http-post-size: -1
  14. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  15. # 每块buffer的空间大小,越小的空间被利用越充分
  16. buffer-size: 512
  17. # 是否分配的直接内存
  18. direct-buffers: true
  19. threads:
  20. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  21. io: 8
  22. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  23. worker: 256
  24. spring:
  25. application:
  26. name: monitor-provider
  27. main:
  28. allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
  29. cloud:
  30. nacos:
  31. discovery:
  32. server-addr: 10.83.68.97:8848
  33. #指定yaml格式的配置
  34. file-extension: yaml
  35. cluster-name: master
  36. username: nacos
  37. password: nacos
  38. #redis集群
  39. redis:
  40. host: 10.83.68.94
  41. # host: 192.168.2.202
  42. port: 6379
  43. timeout: 100000
  44. # 集群环境打开下面注释,单机不需要打开
  45. # cluster:
  46. # 集群信息
  47. # nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
  48. # #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
  49. # maxRedirects: 3
  50. password:
  51. application:
  52. name: test
  53. jedis:
  54. pool:
  55. max-active: 8
  56. min-idle: 0
  57. max-idle: 8
  58. max-wait: -1
  59. database: 19
  60. autoconfigure:
  61. exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
  62. datasource:
  63. type: com.alibaba.druid.pool.DruidDataSource
  64. driver-class-name: oracle.jdbc.OracleDriver
  65. #外网
  66. # url: jdbc:oracle:thin:@192.168.2.215:1521:gdsj
  67. url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
  68. username: gdprod
  69. password: gd123
  70. oracle-schema=:
  71. # type: com.alibaba.druid.pool.DruidDataSource
  72. # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
  73. # username: root
  74. # password: root
  75. # driver-class-name: com.mysql.jdbc.Driver
  76. druid:
  77. max-active: 20
  78. initial-size: 1
  79. min-idle: 3
  80. max-wait: 60000
  81. time-between-eviction-runs-millis: 60000
  82. min-evictable-idle-time-millis: 300000
  83. test-while-idle: true
  84. test-on-borrow: false
  85. test-on-return: false
  86. servlet:
  87. multipart:
  88. # 开启 multipart 上传功能
  89. enabled: true
  90. # 文件写入磁盘的阈值
  91. file-size-threshold: 2KB
  92. # 最大文件大小
  93. max-file-size: 200MB
  94. # 最大请求大小
  95. max-request-size: 215MB
  96. mybatis-plus:
  97. configuration:
  98. map-underscore-to-camel-case: true
  99. auto-mapping-behavior: full
  100. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  101. mapper-locations: classpath*:mapper/**/*Mapper.xml
  102. global-config:
  103. # 逻辑删除配置
  104. db-config:
  105. id-type: auto
  106. # 删除前
  107. logic-not-delete-value: 1
  108. # 删除后
  109. logic-delete-value: 0
  110. logging:
  111. level:
  112. root: info
  113. com.example: debug
  114. golden:
  115. baseURL: http://10.83.68.96:8011/ts