后端application.yaml模板
server:
port: 8080
servlet:
context-path: /
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/bookshopping?serverTimezone=UTC&useSSL=true&useUnicode=true&characterEncoding=utf8
username: root
password: 123456
tomcat:
max-active: 20
max-wait: 5000
initial-size: 1
driver-class-name: com.mysql.cj.jdbc.Driver
jackson:
date-format: yyyy-MM-dd HH:mm:ss
web:
resources:
static-locations: classpath:/resources/,classpath:/static/
chain:
cache: true
cache:
period: 2592000
devtools:
remote:
restart:
enabled: true
servlet:
# 文件上传下载
multipart:
enabled: true
# 最大支持文件大小
max-file-size: 5MB
# 最大支持请求大小
max-request-size: 5MB
profiles:
active: logger
mybatis:
type-aliases-package: com.cqipc.entity
mapper-locations: classpath:mapper