68 lines
1.5 KiB
YAML
Raw Normal View History

isDev: true
jwtSecret: abcdefgh
server:
port: 8088
servlet:
# 不要在最后加/
context-path: /bookmark/api
spring:
jackson:
default-property-inclusion: non_null
servlet:
# 表单配置
multipart:
max-request-size: 10MB
max-file-size: 10MB
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
max-wait: 500ms
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
# 其他连接池参数使用默认值
mail:
host:
username:
password:
port: 465
properties:
mail:
smtp:
auth: true
starttls:
enable: true
required: true
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# classpath后面加*,值里面的*才起作用
mapper-locations: classpath*:mapper/*.xml
debug: false
es:
host: localhost
port: 9200
scheme: http