# Server settings server: port: 8443 # HTTP请求和响应头的最大量,以字节为单位,默认值为4096字节,超过此长度的部分不予处理,一般8K。解决java.io.EOFException: null问题 max-http-header-size: 8192 use-forward-headers: true compression: enabled: true min-response-size: 1024 mime-types: text/plain,text/css,text/xml,text/javascript,application/json,application/javascript,application/xml,application/xml+rss,application/x-javascript,application/x-httpd-php,image/jpeg,image/gif,image/png tomcat: remote-ip-header: X-Forwarded-for protocol-header: X-Forwarded-Proto port-header: X-Forwarded-Port uri-encoding: UTF-8 # SPRING PROFILES spring: profiles: active: '@profileActive@' application: name: blog-web freemarker: allow-request-override: false allow-session-override: false cache: false charset: UTF-8 check-template-location: true content-type: text/html enabled: true expose-request-attributes: false expose-session-attributes: false expose-spring-macro-helpers: true prefer-file-system-access: true suffix: .ftl template-loader-path: classpath:/templates/ settings: template_update_delay: 0 default_encoding: UTF-8 classic_compatible: true # HTTP ENCODING servlet: multipart: max-file-size: 2MB max-request-size: 10MB http: encoding: enabled: true charset: UTF-8 force: true messages: encoding: UTF-8 jmx: enabled: true default-domain: agentservice resources: chain: strategy: content: enabled: true paths: /** # redis缓存服务配置 session: store-type: redis # Redis数据库索引(默认为0) redis: database: 5 # Redis服务器地址 host: 127.0.0.1 # Redis服务器连接端口 port: 6379 # Redis服务器连接密码(默认为空) password: qwe!@#123 jedis: pool: # 连接池最大连接数(使用负值表示没有限制) max-active: 8 # 连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms # 连接池中的最大空闲连接 max-idle: 8 # 连接池中的最小空闲连接 min-idle: 0 # 连接超时时间(毫秒) timeout: 5000ms # 默认的数据过期时间,主要用于shiro权限管理 expire: 2592000 banner: charset: UTF-8 # MyBatis mybatis: type-aliases-package: com.zyd.blog.persistence.beans mapper-locations: classpath:/mybatis/*.xml # mapper mapper: mappers: - com.zyd.blog.plugin.BaseMapper not-empty: false identity: MYSQL # pagehelper pagehelper: helper-dialect: mysql reasonable: true support-methods-arguments: true params: count=countSql