SpringBoot2 中 application.properties 配置文件

SpringBoot2 中 application.properties 配置文件

此文件会随着时间不断更新

# Activate the application-xxx.properties configuration file
#spring.profiles.active=dev
#####################################################################################################
# server start
# ###################################################################################################
# service
server.port=8080
server.servlet.context-path=/
server.tomcat.uri-encoding=UTF-8
# spring dispatcher servlet monitoring Path
#spring.mvc.servlet.path=/
# servlet -- Loading Priority
#spring.mvc.servlet.load-on-startup=1000
server.error.include-exception=true
server.error.include-stacktrace=always
#####################################################################################################
# static start
# ###################################################################################################
# spring static file
spring.web.resources.static-locations=classpath:/static/,classpath:/public/
# When an error occurs, throw an exception directly.
spring.mvc.throw-exception-if-no-handler-found=true
#####################################################################################################
# thymeleaf start
# ###################################################################################################
# spring thymeleaf
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.cache=false
# Check whether the template exists before rendering it.
spring.thymeleaf.check-template=true
# Check whether the template location exists.
spring.thymeleaf.check-template-location=true
# Whether Thymeleaf view parsing is enabled for Web frameworks.
spring.thymeleaf.enabled=true
# Enable SpringEL compiler in SpringEL expression.
spring.thymeleaf.enable-spring-el-compiler=false
# Template patterns to be applied to templates.
spring.thymeleaf.mode=HTML
#####################################################################################################
# i18n start
# ###################################################################################################
# spring Internationalized Page Value i18n
spring.messages.basename=i18n.language
#####################################################################################################
# logger start
# ###################################################################################################
# spring logger
logging.level.com.ykenan.ykenan=trace
# Unspecified path under current project
#logging.file=springboot02.log
#logging.file=D:/install/IDEA/IDEALog/springboot02.log
# Create files and generate spring. log log files by default, logging. file and logging. path, only logging. file is executed.
logging.file.path=D:/install/IDEA/IDEALog/
# Specify the format of console output
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss.SSS} -%5p ---> [%15.15t] %-40.40logger{39} : %m%n%wEx
# Specify the format of file output
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss.SSS} -%5p ---> [%15.15t] %-40.40logger{39} : %m%n%wEx
# Maximum archive log files to be retained. Only default logback settings are supported.
logging.logback.rollingpolicy.max-history=0
# Maximum log file size. Only default logback settings are supported.
logging.logback.rollingpolicy.max-file-size=500MB
#####################################################################################################
# mail start
# ###################################################################################################
# spring mail
spring.mail.username=6985645215@qq.com
# Authorization code: Ensuring safety
spring.mail.password=owljhfiupcgcdfgb
spring.mail.host=smtp.qq.com
spring.mail.port=465
spring.mail.default-encoding=UTF-8
spring.mail.properties.mail.smtp.ssl.enable=true
#####################################################################################################
# jdbc start
# ###################################################################################################
# spring datasource
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/ykenan?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=ykenan123
#####################################################################################################
# mybatis start
# ###################################################################################################
# mybatis
mybatis.config-location=classpath:/mybatis/mybatis-config.xml
#mybatis.mapper-locations=classpath:com/ykenan/ykenan/Mapper/*.xml
mybatis.type-aliases-package=com.ykenan.ykenan.pojo
# Naming of Open Hump
#mybatis.configuration.map-underscore-to-camel-case=true
#####################################################################################################
# druid start
# ###################################################################################################
# spring data monitoring
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.initialsize:5
spring.datasource.minidle:5
spring.datasource.maxactive:20
spring.datasource.maxwait:60000
spring.datasource.timebetweenevictionrunsmi11is:60000
spring.datasource.minevictableidletimemi1lis:300000
spring.datasource.validationquery:SELECT 1 FROM DUAL
spring.datasource.testlhileidle:true
spring.datasource.testonborrow:false
spring.datasource.testonreturn:false
spring.datasource.Poolpreparedstatements:true
spring.datasource.filters:stat,wall
spring.datasource.maxpoolpreparedstatementperconnecti:20
spring.datasource.useglobaldatasourcestat:true
spring.datasource.connectionproperties:druid. stat. merge Sql=true; druid. stat 5lowsqimillis=500
#####################################################################################################
# redis start
# ###################################################################################################
# spring redis
# Redis server address
spring.redis.host=170.0.0.1
# REDIS (RedisProperties)
# Redis Database Index (default 0)
spring.redis.database=0
# Redis Server Connection Port
spring.redis.port=6379
# Redis Server connection password (default is empty)
spring.redis.password=redis123
# Maximum number of connections in connection pool (no restrictions with negative values)
spring.redis.jedis.pool.max-active=8
# Maximum blocking waiting time for connection pools (using negative values to indicate no restrictions)
spring.redis.jedis.pool.max-wait=-1
# Maximum idle connection in connection pool
spring.redis.jedis.pool.max-idle=8
# Minimum idle connection in connection pool
spring.redis.jedis.pool.min-idle=0
# Connection timeout unit MS (milliseconds)
spring.redis.timeout=3000
# 集群
#spring.redis.cluster.nodes=192.168.211.134:7000,192.168.211.134:7001,192.168.211.134:7002
#spring.redis.cluster.max-redirects=6
#####################################################################################################
# cache start
# ###################################################################################################
# spring cache
spring.cache.redis.key-prefix=true
spring.cache.redis.use-key-prefix=true
spring.cache.redis.cache-null-values=true
spring.cache.redis.time-to-live=86400s
#####################################################################################################
# mysql start
# ###################################################################################################
# This sentence is needed for higher versions.
#spring.datasource.platform=mysql
#spring.datasource.continue-on-error=true
#spring.datasource.initialization-mode=always
#spring.datasource.schema=classpath:sql/y_department.sql, classpath:sql/y_employee.sql
##################################################################################################
# pagehelper start
##################################################################################################
# pagehelper database type
pagehelper.helperDialect=mysql
pagehelper.reasonable=true
pagehelper.supportMethodsArguments=true
pagehelper.params=count=countSql
pagehelper.page-size-zero=true
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值