application.properties 1.97 KB
server.port=${port:8081}
server.tomcat.max-threads=1000
spring.application.name=kzy-oss
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.url = jdbc:mysql://39.97.246.118:3306/kzy_db_test?useUnicode=true&characterEncoding=utf-8
spring.datasource.username = kzy_user
spring.datasource.password = Kzy2020#yY

spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true

spring.jackson.serialization.indent-output=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect

mybatis.type-aliases-package=com.server.web.model
#mybatis.mapper-locations=classpath:com/server/mapper/mybatis/*.xml
mybatis.mapper-locations=classpath:mybatis/mapper/*.xml,classpath:mybatis/mapping/*.xml
mybatis.config-location=classpath:mybatis/mybatis-config.xml

## Redis 配置
# Redis数据库索引(默认为0)
spring.redis.database=0
# Redis服务器地址
spring.redis.host=192.168.0.105
# Redis服务器连接端口
spring.redis.port=6379
# Redis服务器连接密码(默认为空)
spring.redis.password=WebRedis123
# 连接池最大连接数(使用负值表示没有限制)
spring.redis.pool.max-active=30
# 连接池最大阻塞等待时间(使用负值表示没有限制)
spring.redis.pool.max-wait=-1
# 连接池中的最大空闲连接
spring.redis.pool.max-idle=8
# 连接池中的最小空闲连接
spring.redis.pool.min-idle=0
# 连接超时时间(毫秒)
spring.redis.timeout=0

#如果本服务为api服务,可以进行如下配置
#是否开始debug模式,false加密并且验签。true调试模式,不加密,不验签
rest.api.debug=true
#编码
rest.api.charset=utf-8
#加密secret_key
rest.api.secretkey=FoK28EsYrxuiM3ohnAurFGm2uGAHyijL
#上传图片
upload.image.dir=/data/tempImages
upload.image.base.path=tempImages/
#七牛云
qiniu.accessKey=tOdsZIdcGZB4A6B4X6XnhRj9PALEPIY4QRT7RduW
qiniu.secretKey=UN8ZnFyzlYUdVNVoRkfpWaFVQBGDc3vUDg_Cz_6h
qiniu.bucket=yxvzb
qiniu.url=https://cdn1.yxvzb.com/