2019-07-06 17:38:59 +08:00
|
|
|
isDev: true
|
|
|
|
jwtSecret: abcdefgh
|
|
|
|
server:
|
|
|
|
port: 8088
|
|
|
|
servlet:
|
2019-07-09 16:43:00 +08:00
|
|
|
# 不要在最后加/
|
|
|
|
context-path: /bookmark/api
|
2019-07-05 08:46:22 +08:00
|
|
|
spring:
|
2019-07-10 17:10:40 +08:00
|
|
|
jackson:
|
|
|
|
default-property-inclusion: non_null
|
2019-07-09 16:43:00 +08:00
|
|
|
servlet:
|
|
|
|
# 表单配置
|
|
|
|
multipart:
|
|
|
|
max-request-size: 10MB
|
|
|
|
max-file-size: 10MB
|
2019-07-06 17:38:59 +08:00
|
|
|
profiles:
|
|
|
|
active: dev
|
|
|
|
application:
|
|
|
|
name: bookmark
|
|
|
|
flyway:
|
|
|
|
baseline-on-migrate: true
|
|
|
|
cache:
|
|
|
|
type: redis
|
|
|
|
redis:
|
|
|
|
database: 0
|
|
|
|
host: localhost
|
|
|
|
password:
|
|
|
|
timeout: 500ms
|
|
|
|
lettuce:
|
|
|
|
pool:
|
|
|
|
max-active: 20
|
2019-08-01 18:31:40 +08:00
|
|
|
max-wait: 500ms
|
2019-07-06 17:38:59 +08:00
|
|
|
max-idle: 20
|
|
|
|
min-idle: 2
|
|
|
|
datasource:
|
|
|
|
name: mysql
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
druid:
|
|
|
|
url: jdbc:mysql://localhost:3306/bookmark?useUnicode=true&characterEncoding=utf-8&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
|
|
|
|
username: root
|
|
|
|
password: 123456
|
|
|
|
# 其他连接池参数使用默认值
|
2019-07-05 08:46:22 +08:00
|
|
|
mail:
|
|
|
|
host:
|
|
|
|
username:
|
|
|
|
password:
|
2019-07-06 17:38:59 +08:00
|
|
|
port: 465
|
2019-07-05 08:46:22 +08:00
|
|
|
properties:
|
|
|
|
mail:
|
|
|
|
smtp:
|
|
|
|
auth: true
|
2019-08-10 17:41:26 +08:00
|
|
|
socketFactory:
|
|
|
|
class: javax.net.ssl.SSLSocketFactory
|
2019-07-05 08:46:22 +08:00
|
|
|
starttls:
|
|
|
|
enable: true
|
2019-07-06 17:38:59 +08:00
|
|
|
|
2019-12-15 23:02:04 +08:00
|
|
|
mybatis-plus:
|
2019-07-06 17:38:59 +08:00
|
|
|
configuration:
|
2019-07-18 17:07:07 +08:00
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
2019-07-09 16:43:00 +08:00
|
|
|
# classpath后面加*,值里面的*才起作用
|
|
|
|
mapper-locations: classpath*:mapper/*.xml
|
|
|
|
debug: false
|
2019-07-24 17:56:16 +08:00
|
|
|
|
|
|
|
es:
|
|
|
|
host: localhost
|
|
|
|
port: 9200
|
|
|
|
scheme: http
|
2019-09-08 19:39:29 +08:00
|
|
|
|
|
|
|
# 默认文件上传基路径
|
|
|
|
fileSavePath: ./
|
2019-11-06 22:06:09 +08:00
|
|
|
|
|
|
|
# 服务部署地址
|
|
|
|
serviceAddress: http://localhost
|