application.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. server:
  2. port: 8808
  3. servlet:
  4. context-path: /fusion
  5. tomcat:
  6. max-http-form-post-size: -1
  7. spring:
  8. profiles:
  9. active: ${activeProfile:local}
  10. servlet:
  11. multipart:
  12. max-file-size: 1000MB
  13. maxRequestSize: 1000MB
  14. datasource:
  15. type: com.zaxxer.hikari.HikariDataSource # 数据源类型:HikariCP
  16. driver-class-name: com.mysql.jdbc.Driver # mysql驱动
  17. url: jdbc:mysql://127.0.0.1:${MYSQLP}/laser?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=GMT%2B8
  18. username: root
  19. password: laser
  20. hikari:
  21. connection-timeout: 30000 # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没可用的连接则发生SQLException, 默认:30秒
  22. minimum-idle: 5 # 最小连接数
  23. maximum-pool-size: 20 # 最大连接数
  24. auto-commit: true # 事务自动提交
  25. idle-timeout: 600000 # 连接超时的最大时长(毫秒),超时则被释放(retired),默认:10分钟
  26. pool-name: DateSourceHikariCP # 连接池名字
  27. max-lifetime: 1800000 # 连接的生命时长(毫秒),超时而且没被使用则被释放(retired),默认:30分钟 1800000ms
  28. connection-test-query: SELECT 1 # 连接测试语句
  29. redis:
  30. host: 127.0.0.1
  31. port: ${REDISP}
  32. timeout: 6000ms
  33. password:
  34. jedis:
  35. pool:
  36. max-active: 10 #连接池最大连接数(使用负值表示没有限制)
  37. max-idle: 10 # 连接池中的最大空闲连接
  38. min-idle: 5 # 连接池中的最小空闲连接
  39. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  40. lettuce:
  41. shutdown-timeout: 0ms
  42. 4dkk:
  43. laserService:
  44. basePath: http://localhost
  45. fdService:
  46. basePath: http://localhost
  47. takeLookService:
  48. basePath: http://localhost
  49. logging:
  50. config: classpath:logback-spring.xml
  51. path: ./log
  52. mybatis-plus:
  53. configuration:
  54. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志
  55. upload:
  56. type: local
  57. query-path:
  58. oss:
  59. bucket:
  60. fdkk:
  61. installPath: ${PROFILE_PATH}
  62. geoquery:
  63. dataFilePath: ./GeoJSON.json
  64. saveWkbsFilePath: ./GeoJSON.wkbs
  65. forest:
  66. ## 日志总开关,打开/关闭Forest请求/响应日志(默认为 true)
  67. log-enabled: true
  68. ## 打开/关闭Forest请求日志(默认为 true)
  69. log-request: true
  70. ## 打开/关闭Forest响应状态日志(默认为 true)
  71. log-response-status: true
  72. ## 打开/关闭Forest响应内容日志(默认为 false)
  73. log-response-content: true
  74. ## 请求超时时间,单位为毫秒, 默认值为3000
  75. timeout: 10000
  76. ## 连接超时时间,单位为毫秒, 默认值为2000
  77. connect-timeout: 10000