#端口 server.port=9000 spring.application.name=stone spring.datasource.name="test" spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?serverTimezone=Asia/Shanghai&characterEncoding=utf-8 spring.datasource.username=root spring.datasource.password=root spring.datasource.druid.max-active=20 spring.datasource.druid.min-idle=1 spring.datasource.druid.initial-size=2 # Redis数据库索引(默认为0) spring.redis.database=0 # Redis服务器地址 spring.redis.host=190.168.247.129 # Redis服务器连接端口 spring.redis.port=6379 # Redis服务器连接密码(默认为空) spring.redis.password=123456 # 连接池最大连接数(使用负值表示没有限制) spring.redis.pool.max-active=8 # 连接池最大阻塞等待时间(使用负值表示没有限制) spring.redis.pool.max-wait=-1 # 连接池中的最大空闲连接 spring.redis.pool.max-idle=8 # 连接池中的最小空闲连接 spring.redis.pool.min-idle=0 # 连接超时时间(毫秒) spring.redis.timeout=1200 ########### Mybatis mybatis.mapper-locations=classpath:mapper/*.xml mybatis.type-aliases-package=com.stone.pojo mybatis.configuration.map-underscore-to-camel-case=true logging.level.com.stone.mapper=debug #加密密钥 config.jwt.secret=stone #有效时常 #config.jwt.expire=1000*60*60*24 #header 头部 config.jwt.header=token logging.level.com.stone.dao=debug
快速配置properties
于 2022-06-16 21:20:35 首次发布