application-jn.yml 2.6 KB

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