This repository has been archived by the owner on Nov 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplication-sample.properties
60 lines (60 loc) · 1.91 KB
/
application-sample.properties
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
57
58
59
60
# 端口
server.port=8080
# 运行环境
spring.profiles.active=prod
# MongoDB 数据库
spring.data.mongodb.uri=mongodb://127.0.0.1:27017/xxx
logging.level.org.springframework.data.mongodb.core=debug
# 数据源
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/xxx?useUnicode=true&characterEncoding=utf-8&useSSL=false
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.tomcat.default-auto-commit=true
# Jpa
spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto=update
spring.jpa.open-in-view=true
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
# Redis 数据库
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.jedis.pool.max-active=8
spring.redis.jedis.pool.max-wait=-1ms
spring.redis.jedis.pool.max-idle=8
spring.redis.jedis.pool.min-idle=0
spring.data.redis.repositories.enabled=false
# ----------Url: replace above
spring.redis.url=redis://127.0.0.1:6379
# 时区
spring.jackson.time-zone=GMT+8
# 文件上传大小
spring.servlet.multipart.max-file-size=20971520
spring.servlet.multipart.max-request-size=20971520
# 邮箱
spring.mail.host=smtp.xxx.com
spring.mail.protocol=smtp
spring.mail.username=xxx
spring.mail.password=xxx
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
# 应用监控
management.endpoint.shutdown.enabled=true
# BootSurface 工具库
boot.surface.max-upload-file-size=1048576
boot.surface.rest-server=http://127.0.0.1:8080
boot.surface.debug=true
boot.surface.sealed=false
boot.surface.ok-code=0
boot.surface.frequency=1000
boot.surface.visit-log=false
# -------Mail: if need
boot.surface.mail.host=smtp.qq.com
boot.surface.mail.port=25
boot.surface.mail.protocol=smtp
boot.surface.mail.username=example@qq.com
boot.surface.mail.password=123456
# -------Redis: if need
boot.surface.redis.host=127.0.0.1
boot.surface.redis.port=6379
boot.surface.redis.db=1