server:
    port: 9004
    #tomcat.max-swallow-size: 100MB #
    max-http-header-size: 8192 #qzf 2021-12-30 10:46:59 这个参数原来10M,现改为8K,严重影响性能
    servlet:
    session:
    timeout: PT2H #session超时 2小时
    spring:
    mvc:
    pathmatch:
    matching-strategy: ant_path_matcher
    devtools:
    restart:
    enabled: true
    additional-paths: src/main/java
    application:
    name: web
    main.allow-circular-references: true
    servlet:
    multipart:
    enabled: true
    max-file-size: 10MB #单个文件的最大上限,以jar启动生效
    max-request-size: 300MB #单个请求的文件总大小上限,以jar启动生效
    jackson:
    #default-property-inclusion: non_null qzf不要使用这个配置 即使null,也要输出
    default-property-inclusion: ALWAYS
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    # freemarker静态资源配置
    # 设定ftl文件路径
    freemarker:
    tempalte-loader-path: classpath:/templates/
    # 关闭缓存,及时刷新,上线生产环境需要修改为true
    cache: false
    charset: UTF-8
    check-template-location: true
    content-type: text/html
    expose-request-attributes: true
    expose-session-attributes: true
    request-context-attribute: request
    suffix: .ftl
    settings:
    template_update_delay: 5
    default_encoding: UTF-8
    locale: UTF-8
    datetime_format: yyyy-MM
    time_format: HH:mm
    number_format: 0.####
    boolean_format: true,false
    whitespace_stripping: true
    tag_syntax: auto_detect
    url_escaping_charset: UTF-8

    1. #log4j.logger.freemarker.cache: ERROR<br /> #log4j.logger.freemarker.beans: ERROR

    jdbc:
    ds:
    url: jdbc:sqlserver://192.168.1.199:1433;DatabaseName=lnyw;allowMultiQueries=true
    username: hykj
    password: hykj
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    #连接池的配置信息
    initialSize: 5
    minIdle: 5
    maxActive: 20
    # 配置获取连接等待超时的时间
    maxWait: 60000
    # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
    timeBetweenEvictionRunsMillis: 60000
    # 配置一个连接在池中最小生存的时间,单位是毫秒
    minEvictableIdleTimeMillis: 300000
    validationQuery: SELECT 1
    testWhileIdle: true
    testOnBorrow: false #指明是否在从池中取出连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个 注意: 设置为true后如果要生效,validationQuery参数必须设置为非空字符串
    testOnReturn: false
    # 打开PSCache,并且指定每个连接上PSCache的大小
    poolPreparedStatements: false #当开启时, 将为每个连接创建一个statement池,并且被方法创建的PreparedStatements将被缓存起来:
    maxPoolPreparedStatementPerConnectionSize: 20
    # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,’wall’用于防火墙
    filters: stat,slf4j #wall,这里不加wall ,多sql执行失败
    # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
    connectionProperties: druid.stat.mergeSql=false;druid.stat.slowSqlMillis=5000;druid.stat.logSlowSql=true;
    #mybatis: 在MyDruidConfig配置
    # type-aliases-package: com.hy.model
    # configuration:
    # #进行自动映射时,数据以下划线命名,如数据库返回的”order_address”命名字段是否映射为class的”orderAddress”字段。默认为false
    # map-underscore-to-camel-case: true
    # # 输出SQL执行语句 (log4j2本身可以输出sql语句)
    # #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #这种带结果集
    #logging.level.com.hy.mapper: debug #也可以输出日志
    #tk.mybatis
    mapper:
    mappers: tk.mybatis.mapper.common.Mapper
    not-empty: false
    identity: SQLSERVER
    style: normal #camelhump
    pagehelper:
    #oracle,mysql,mariadb,sqlite,hsqldb,postgresql,db2,sqlserver,informix,h2,sqlserver2012,derby
    #helper-dialect: sqlserver 不配置也可以
    offset-as-page-num: true
    row-bounds-with-count: false #使用RowBounds分页,需要设置为true
    page-size-zero: false #如果开启 pageSize=0 时返回所有
    reasonable: false #开启优化,如果开启优化,在分页页码结果没有数据的时候,会显示有数据的页码数据
    # params: pageNum=pageNum;pageSize=pageSize;count=countSql;reasonable=reasonable;pageSizeZero=pageSizeZero
    #support-methods-arguments: false
    #auto-runtime-dialect: false
    #close-conn: false
    #aggregate-functions: