application-test.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. server:
  2. port: 7011
  3. servlet:
  4. context-path: /
  5. spring:
  6. main:
  7. allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
  8. #redis集群
  9. redis:
  10. host: 10.83.68.151
  11. port: 6379
  12. timeout: 100000
  13. # 集群环境打开下面注释,单机不需要打开
  14. cluster:
  15. #集群信息
  16. nodes: 10.83.68.151:6379,10.83.68.152:6379,10.83.68.153:6379,10.83.68.154:6379,10.83.68.155:6379,10.83.68.156:6379,10.83.68.157:6379,10.83.68.158:6379,10.83.68.159:6379
  17. #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
  18. maxRedirects: 3
  19. password: Dsjpt@2021
  20. application:
  21. name: test
  22. jedis:
  23. pool:
  24. max-active: 8
  25. min-idle: 0
  26. max-idle: 8
  27. max-wait: -1
  28. database: 0
  29. autoconfigure:
  30. exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
  31. datasource:
  32. type: com.alibaba.druid.pool.DruidDataSource
  33. driver-class-name: oracle.jdbc.OracleDriver
  34. #外网
  35. url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
  36. username: gdprod
  37. password: gd123
  38. oracle-schema=:
  39. # type: com.alibaba.druid.pool.DruidDataSource
  40. # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
  41. # username: root
  42. # password: root
  43. # driver-class-name: com.mysql.jdbc.Driver
  44. druid:
  45. max-active: 20
  46. initial-size: 1
  47. min-idle: 3
  48. max-wait: 60000
  49. time-between-eviction-runs-millis: 60000
  50. min-evictable-idle-time-millis: 300000
  51. test-while-idle: true
  52. test-on-borrow: false
  53. test-on-return: false
  54. servlet:
  55. multipart:
  56. # 开启 multipart 上传功能
  57. enabled: true
  58. # 文件写入磁盘的阈值
  59. file-size-threshold: 2KB
  60. # 最大文件大小
  61. max-file-size: 200MB
  62. # 最大请求大小
  63. max-request-size: 215MB
  64. mybatis-plus:
  65. configuration:
  66. map-underscore-to-camel-case: true
  67. auto-mapping-behavior: full
  68. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  69. mapper-locations: classpath*:mapper/**/*Mapper.xml
  70. global-config:
  71. # 逻辑删除配置
  72. db-config:
  73. id-type: auto
  74. # 删除前
  75. logic-not-delete-value: 1
  76. # 删除后
  77. logic-delete-value: 0
  78. logging:
  79. level:
  80. root: info
  81. com.example: debug
  82. db:
  83. url: http://10.83.68.205:8011/ts
  84. runWindpowerstation: CL_FDC,KB_FDC,DX_FDC,SY_FDC