# 项目相关配置 KYGK: # 名称 name: KYGK # 版本 version: 1.0.0 # 会话失效时间(单位秒) session-timeout: 30000 # 文件存储类型 storage-type: http #debug: true server: port: 8081 upload: D:/upload webfileip: 127.0.0.1 webfileport: 8082 servlet: # 项目相对路径 context-path: spring: # http: # encoding: # charset: UTF-8 # force: true # enabled: true # 设置上传文件大小 servlet: multipart: max-file-size: 40MB max-request-size: 40MB # 设置jackson的默认时区 jackson: time-zone: GMT+8 datasource: driverClassName: net.sourceforge.jtds.jdbc.Driver username: sa password: Sfty2023LRG2300 url: jdbc:jtds:sqlserver://101.42.41.254/KYGK hikari: # 解决 java.lang.AbstractMethodError at net.sourceforge.jtds.jdbc.JtdsConnection.isValid connection-test-query: "select 1" # Redis配置 redis: host: 127.0.0.1 # Redis服务器地址 port: 6379 # Redis服务器连接端口 password: # Redis服务器连接密码(默认为空) database: 0 #Redis数据库索引(默认为0) timeout: 10s # 连接超时时间(毫秒) lettuce: pool: max-active: 20 # 连接池最大连接数(使用负值表示没有限制) max-idle: 20 # 连接池中的最大空闲连接 max-wait: 5s # 连接池最大阻塞等待时间(使用负值表示没有限制) min-idle: 5 # 连接池中的最小空闲连接 # 静态资源配置 resources: static-locations: classpath:/static/ # thymeleaf模板引擎配置 thymeleaf: prefix: classpath:/templates/ suffix: .html mode: HTML encoding: UTF-8 cache: false #mybatis: # type-aliases-package: com.liang.dao # mapper-locations: classpath*:/mapper/*.xml # config-location: classpath:mybatis-config.xml # configuration: # map-underscore-to-camel-case: true mybatis: configuration: map-underscore-to-camel-case: true default-fetch-size: 1000 jdbc-type-for-null: other cache-enabled: false log-impl: org.apache.ibatis.logging.stdout.StdOutImpl lazy-loading-enabled: true mapper-locations: classpath:mapper/**/*.xml type-aliases-package: com.liang.dao plugins: - com.github.pagehelper.PageInterceptor pagehelper: helper-dialect: sqlserver reasonable: true support-methods-arguments: true params: count=countSql # 1、redisson单机模式配置 redisson: address: redis://127.0.0.1:6379 password: timeout: 5000