application-jn.yml 2.4 KB

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