application-test.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. server:
  2. port: 8086
  3. servlet:
  4. context-path: /
  5. spring:
  6. application:
  7. name: monitor-provider
  8. main:
  9. allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
  10. cloud:
  11. nacos:
  12. discovery:
  13. server-addr: 10.83.68.97: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: 19
  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:@192.168.2.215:1521:gdsj
  48. url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
  49. username: gdprod
  50. password: gd123
  51. oracle-schema=:
  52. # type: com.alibaba.druid.pool.DruidDataSource
  53. # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
  54. # username: root
  55. # password: root
  56. # driver-class-name: com.mysql.jdbc.Driver
  57. druid:
  58. max-active: 20
  59. initial-size: 1
  60. min-idle: 3
  61. max-wait: 60000
  62. time-between-eviction-runs-millis: 60000
  63. min-evictable-idle-time-millis: 300000
  64. test-while-idle: true
  65. test-on-borrow: false
  66. test-on-return: false
  67. servlet:
  68. multipart:
  69. # 开启 multipart 上传功能
  70. enabled: true
  71. # 文件写入磁盘的阈值
  72. file-size-threshold: 2KB
  73. # 最大文件大小
  74. max-file-size: 200MB
  75. # 最大请求大小
  76. max-request-size: 215MB
  77. mybatis-plus:
  78. configuration:
  79. map-underscore-to-camel-case: true
  80. auto-mapping-behavior: full
  81. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  82. mapper-locations: classpath*:mapper/**/*Mapper.xml
  83. global-config:
  84. # 逻辑删除配置
  85. db-config:
  86. id-type: auto
  87. # 删除前
  88. logic-not-delete-value: 1
  89. # 删除后
  90. logic-delete-value: 0
  91. logging:
  92. level:
  93. root: info
  94. com.example: debug