lls.spring-boot-common.1.2.5.source-code.application.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-common Show documentation
Show all versions of spring-boot-common Show documentation
Taills's Spring Boot Project Common
spring:
cache:
type: simple
main:
lazy-initialization: false
# 上面的为 true 时,swagger 不显示ApiModule
mvc:
hiddenmethod:
filter:
enabled: true #启用Restful 风格 的PUT DELETE 请求方式
jpa:
show-sql: false # 启用后,会在标准输出上输出sql语句
hibernate:
ddl-auto: none
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_NAME}?useUnicode=true&allowPublicKeyRetrieval=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
username: ${DB_USER}
password: ${DB_PASSWORD}
flyway:
#是否开启flywary,默认true.
enabled: true
#当迁移时发现目标schema非空,而且带有没有元数据的表时,是否自动执行基准迁移,默认false
baseline-on-migrate: true
#禁止清理数据
clean-disabled: true
#验证错误时是否清楚数据 当发现校验错误时是否自动调用clean,默认false
clean-on-validation-error: false
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
default-property-inclusion: non_null
# ===== 自定义swagger配置 ===== #
swagger:
enable: true
application-name: Common API
application-version: 1.0
group-name: ${swagger.application-name}
application-description: ${swagger.application-name}
contact:
name: Taills
email: [email protected]
url: https://github.com/taills/
logging:
level:
root: WARN
com:
github:
taills: DEBUG
© 2015 - 2025 Weber Informatics LLC | Privacy Policy