SpringBoot项目配置模板
application.yml
server:
port: 8000
spring:
# spring email
mail:
username: chunfengh163@163.com
host: smtp.163.com
password: OYZDLGLUUOLFGOEV
# datasource
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 123456
url: jdbc:mysql://localhost:3306/vhr?serverTimezone=Asia/Shanghai
# jackson
jackson:
default-property-inclusion: non_null
date-format: yyyy-MM-dd HH:mm:SS
time-zone: GMT+8
# http file
servlet:
multipart:
max-request-size: 1000MB
max-file-size: 1000MB
resolve-lazily: true
# default not allow
main:
allow-circular-references: false
# mybatis
mybatis:
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
use-generated-keys: true
jdbc-type-for-null: null
local-cache-scope: statement
mapper-locations: classpath:/mapper/**/*.xml
# type-aliases-package: com.rufeng.healthman.pojo
vhr:
work-dir: ${user.home}/.vhr
application-dev.yml
logging:
level:
web: DEBUG
com.windcf.vhr: DEBUG
sql: DEBUG
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# main:
# allow-circular-references: true
springdoc:
swagger-ui:
enabled: true
path: /docs
packages-to-scan: com.windcf.vhr.web.controller
Q.E.D.