application.yml 2.4 KB

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