knowledgeman-service-dev.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. server:
  2. port: 8822
  3. # 驱动配置信息
  4. spring:
  5. datasource:
  6. druid:
  7. driver-class-name: com.mysql.cj.jdbc.Driver
  8. platform: mysql
  9. url: jdbc:mysql://192.168.2.236:3306/med?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
  10. username: root
  11. password: lantone
  12. # 连接池的配置信息
  13. # 初始化大小,最小,最大
  14. initialSize: 5
  15. minIdle: 5
  16. maxActive: 20
  17. # 配置获取连接等待超时的时间
  18. maxWait: 60000
  19. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  20. timeBetweenEvictionRunsMillis: 60000
  21. # 配置一个连接在池中最小生存的时间,单位是毫秒
  22. minEvictableIdleTimeMillis: 300000
  23. validationQuery: SELECT 1 FROM DUAL
  24. testWhileIdle: true
  25. testOnBorrow: false
  26. testOnReturn: false
  27. # 打开PSCache,并且指定每个连接上PSCache的大小
  28. poolPreparedStatements: true
  29. maxPoolPreparedStatementPerConnectionSize: 20
  30. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  31. filters.commons-log.connection-logger-name: wall,log4j
  32. filter:
  33. stat:
  34. enabled: true
  35. mergeSql: true
  36. log-slow-sql: true
  37. slow-sql-millis: 2000
  38. #监控配置
  39. web-stat-filter:
  40. enabled: true
  41. url-pattern: /*
  42. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  43. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  44. stat-view-servlet:
  45. enabled: true
  46. url-pattern: /druid/*
  47. reset-enable: false
  48. login-username: root
  49. login-password: root
  50. servlet:
  51. multipart:
  52. enabled: true
  53. max-file-size: 5MB
  54. max-request-size: 5MB
  55. cloud:
  56. stream:
  57. bindings:
  58. outputLog:
  59. destination: myLog
  60. # contentType: text/plain # 实体 json string 在传递的类型装换 查看 http://docs.spring
  61. outputWord:
  62. destination: myWord
  63. # contentType: text/plain # 实体 json string 在传递的类型装换 查看 http://docs.spring
  64. inputWord:
  65. destination: myWord
  66. group: wordReceiveGroup
  67. #mq
  68. rabbitmq:
  69. host: 192.168.2.236
  70. port: 5672
  71. username: lantone
  72. password: lantone
  73. publisher-confirms: true
  74. virtual-host: /
  75. #redis
  76. redis:
  77. database:
  78. cache: 6 # Redis缓存索引
  79. host: 192.168.2.236 #Redis服务器地址
  80. port: 6379 # Redis服务器连接端口
  81. password: lantone # Redis服务器连接密码(默认为空)
  82. lettuce:
  83. pool:
  84. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  85. max-idle: 5 # 连接池中的最大空闲连接
  86. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  87. min-idle: 0 # 连接池中的最小空闲连接
  88. timeout: 20000 # 连接超时时间(毫秒)
  89. #mybatis
  90. mybatis-plus:
  91. mapper-locations: classpath:/mapper/*Mapper.xml
  92. #实体扫描,多个package用逗号或者分号分隔
  93. typeAliasesPackage: com.diagbot.entity
  94. global-config:
  95. #刷新mapper 调试神器
  96. db-config:
  97. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  98. id-type: id_worker
  99. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  100. field-strategy: 1
  101. #驼峰下划线转换
  102. column-underline: true
  103. #数据库大写下划线转换
  104. #capital-mode: true
  105. #刷新mapper 调试神器
  106. refresh-mapper: true
  107. #逻辑删除配置
  108. logic-delete-value: 0
  109. logic-not-delete-value: 1
  110. #自定义填充策略接口实现
  111. #meta-object-handler: com.baomidou.springboot.xxx
  112. #自定义SQL注入器
  113. #sql-injector: com.baomidou.springboot.xxx
  114. configuration:
  115. map-underscore-to-camel-case: true
  116. cache-enabled: false
  117. imageUrl:
  118. prefix: http://192.168.2.236:82
  119. neo:
  120. server:
  121. address: http://192.168.2.234:5004
  122. ai:
  123. server:
  124. address: http://192.168.2.234:5008
  125. nlp:
  126. server:
  127. address: http://192.168.2.234:5002