application.properties
1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
server.port=${port:8081}
server.tomcat.max-threads=1000
spring.application.name=sj-oss
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.url = jdbc:mysql://127.0.0.1:3306/sj_sc?useUnicode=true&characterEncoding=utf-8
spring.datasource.username = root
spring.datasource.password = 2019#YpfkL999
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=127.0.0.1
# Redis服务器连接端口
spring.redis.port=6379
# Redis服务器连接密码(默认为空)
spring.redis.password=WebRedis999
# 连接池最大连接数(使用负值表示没有限制)
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=/alidata/server/tempImages
upload.image.base.path=tempImages/
#七牛云
qiniu.accessKey=tOdsZIdcGZB4A6B4X6XnhRj9PALEPIY4QRT7RduW
qiniu.secretKey=UN8ZnFyzlYUdVNVoRkfpWaFVQBGDc3vUDg_Cz_6h
qiniu.bucket=yxvzb
qiniu.url=https://cdn1.yxvzb.com/