novel-plus/novel-common/src/main/resources/application-common.yml
2021-05-16 09:47:23 +08:00

36 lines
886 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
cache:
ehcache:
config: classpath:ehcache.xml
thymeleaf:
mode: LEGACYHTML5 #去除thymeleaf的html严格校验thymeleaf.mode=LEGACYHTML5
cache: false # 是否开启模板缓存默认true,建议在开发时关闭缓存,不然没法看到实时
# 将所有数字转为 String 类型返回避免前端数据精度丢失的问题
jackson:
generator:
write-numbers-as-strings: true
#上传文件的最大值1M
servlet:
multipart:
max-file-size: 1048576
#缓存类型ehcache(默认)redis
cache:
type: ehcache
mybatis:
configuration:
#自动将数据库带下划线的表字段值映射到Java类的驼峰字段上
map-underscore-to-camel-case: true
mapper-locations: classpath*:mybatis/mapping/*.xml
type-aliases-package: com.java2nb.novel.entity
logging:
config: classpath:logback-boot.xml