zoukankan      html  css  js  c++  java
  • springboot默认配置文件

    ########################################################
    ########################################################
    server.port=10090
    server.servlet.session.timeout=1800
    spring.jackson.time-zone=GMT+8
    spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
    spring.session.store-type=redis
    ###FREEMARKER
    spring.freemarker.allow-request-override=false
    spring.freemarker.cache=true
    spring.freemarker.check-template-location=true
    spring.freemarker.charset=UTF-8
    spring.freemarker.content-type=text/html
    spring.freemarker.expose-request-attributes=false
    spring.freemarker.expose-session-attributes=false
    spring.freemarker.expose-spring-macro-helpers=false
    spring.freemarker.prefix=
    #spring.freemarker.request-context-attribute=
    #spring.freemarker.settings.
    spring.freemarker.settings.template_update_delay=800
    spring.freemarker.settings.default_encoding=UTF-8
    spring.freemarker.suffix=.ftl
    spring.freemarker.template-loader-path=classpath:/templates/
    #spring.freemarker.view-names= # whitelist of view names that can be resolved
    spring.freemarker.settings.number_format=0.##

    # u6570u636Eu5E93u57FAu672Cu914Du7F6E
    spring.datasource.url=jdbc:mysql://127.0.0.1:3306/db_muyi?serverTimezone=GMT%2b8&useUnicode=true&characterEncoding=utf8
    spring.datasource.username=root
    spring.datasource.password=
    spring.datasource.driver-class-name=com.mysql.jdbc.Driver
    spring.datasource.continue-on-error=false
    spring.datasource.test-while-idle=true
    #获取连接时候验证,会影响性能
    spring.datasource.test-on-borrow=false
    #在连接归还到连接池时是否测试该连接
    spring.datasource.test-on-return=false
    spring.datasource.validation-query=SELECT 1 FROM DUAL
    #空闲连接回收的时间间隔,与test-while-idle一起使用,设置5分钟
    spring.datasource.time-between-eviction-runs-millis=300000
    #连接池空闲连接的有效时间 ,设置30分钟
    spring.datasource.min-evictable-idle-time-millis=1800000
    spring.datasource.initial-size=5
    #指定连接池中最大的活跃连接数.
    spring.datasource.max-active=50
    #指定连接池等待连接返回的最大等待时间,毫秒单位.
    spring.datasource.max-wait=60000
    #指定必须保持连接的最小值
    spring.datasource.min-idle=5

    spring.jpa.database=MYSQL
    # u663Eu793Au540Eu53F0u5904u7406u7684SQLu8BEDu53E5
    spring.jpa.show-sql=false
    # u81EAu52A8u68C0u67E5u5B9Eu4F53u548Cu6570u636Eu5E93u8868u662Fu5426u4E00u81F4uFF0Cu5982u679Cu4E0Du4E00u81F4u5219u4F1Au8FDBu884Cu66F4u65B0u6570u636Eu5E93u8868
    spring.jpa.hibernate.ddl-auto=update
    spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect

    logging.config=classpath:log4j.properties
    #redis
    spring.redis.host=127.0.0.1
    spring.redis.port=6379
    spring.redis.password=123
    # 一般来说是不用配置的,Spring Cache 会根据依赖的包自行装配
    spring.cache.type=redis
    # 连接超时时间(毫秒)
    spring.redis.timeout=10000
    # Redis默认情况下有16个分片,这里配置具体使用的分片
    spring.redis.database=0
    # 连接池最大连接数(使用负值表示没有限制) 默认 8
    spring.redis.lettuce.pool.max-active=8
    # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
    spring.redis.lettuce.pool.max-wait=-1
    # 连接池中的最大空闲连接 默认 8
    spring.redis.lettuce.pool.max-idle=8
    # 连接池中的最小空闲连接 默认 0
    spring.redis.lettuce.pool.min-idle=0
    #redis
    redis.host=127.0.0.1
    redis.port=6379
    redis.timeout=3000
    redis.password=123
    redis.poolMaxTotal=10
    redis.poolMaxIdle=10
    redis.poolMaxWait=3000

  • 相关阅读:
    PHP之get请求用php脚本实现
    PHP之download
    PHP之缩略图
    PHP之upload
    文本域<textarea>将 替换成换行
    JSON中获取变量key的值
    emap表格checkbox属性默认勾选
    读取ORACLE数据库中BOLB形式数据在前端预览
    oracle常用语法
    批量删除本地仓库未下载完成的jar文件
  • 原文地址:https://www.cnblogs.com/wxy2000/p/13844744.html
Copyright © 2011-2022 走看看