application.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # 项目相关配置
  2. KYGK:
  3. # 名称
  4. name: KYGK
  5. # 版本
  6. version: 1.0.0
  7. # 会话失效时间(单位秒)
  8. session-timeout: 30000
  9. # 文件存储类型
  10. storage-type: http
  11. #debug: true
  12. server:
  13. port: 8081
  14. upload: D:/upload
  15. webfileip: 127.0.0.1
  16. webfileport: 8082
  17. servlet:
  18. # 项目相对路径
  19. context-path:
  20. spring:
  21. # http:
  22. # encoding:
  23. # charset: UTF-8
  24. # force: true
  25. # enabled: true
  26. # 设置上传文件大小
  27. servlet:
  28. multipart:
  29. max-file-size: 40MB
  30. max-request-size: 40MB
  31. # 设置jackson的默认时区
  32. jackson:
  33. time-zone: GMT+8
  34. datasource:
  35. driverClassName: net.sourceforge.jtds.jdbc.Driver
  36. username: sa
  37. password: Sfty2023LRG2300
  38. url: jdbc:jtds:sqlserver://101.42.41.254/KYGK
  39. hikari:
  40. # 解决 java.lang.AbstractMethodError at net.sourceforge.jtds.jdbc.JtdsConnection.isValid
  41. connection-test-query: "select 1"
  42. # Redis配置
  43. redis:
  44. host: 127.0.0.1 # Redis服务器地址
  45. port: 6379 # Redis服务器连接端口
  46. password: # Redis服务器连接密码(默认为空)
  47. database: 0 #Redis数据库索引(默认为0)
  48. timeout: 10s # 连接超时时间(毫秒)
  49. lettuce:
  50. pool:
  51. max-active: 20 # 连接池最大连接数(使用负值表示没有限制)
  52. max-idle: 20 # 连接池中的最大空闲连接
  53. max-wait: 5s # 连接池最大阻塞等待时间(使用负值表示没有限制)
  54. min-idle: 5 # 连接池中的最小空闲连接
  55. # 静态资源配置
  56. resources:
  57. static-locations: classpath:/static/
  58. # thymeleaf模板引擎配置
  59. thymeleaf:
  60. prefix: classpath:/templates/
  61. suffix: .html
  62. mode: HTML
  63. encoding: UTF-8
  64. cache: false
  65. #mybatis:
  66. # type-aliases-package: com.liang.dao
  67. # mapper-locations: classpath*:/mapper/*.xml
  68. # config-location: classpath:mybatis-config.xml
  69. # configuration:
  70. # map-underscore-to-camel-case: true
  71. mybatis:
  72. configuration:
  73. map-underscore-to-camel-case: true
  74. default-fetch-size: 1000
  75. jdbc-type-for-null: other
  76. cache-enabled: false
  77. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  78. lazy-loading-enabled: true
  79. mapper-locations: classpath:mapper/**/*.xml
  80. type-aliases-package: com.liang.dao
  81. plugins:
  82. - com.github.pagehelper.PageInterceptor
  83. pagehelper:
  84. helper-dialect: sqlserver
  85. reasonable: true
  86. support-methods-arguments: true
  87. params: count=countSql
  88. # 1、redisson单机模式配置
  89. redisson:
  90. address: redis://127.0.0.1:6379
  91. password:
  92. timeout: 5000