首页优化

This commit is contained in:
xiongxiaoyang
2019-11-11 16:25:22 +08:00
parent 5465eae791
commit c37e539cb4
3 changed files with 51 additions and 47 deletions

View File

@@ -3,9 +3,6 @@ server:
spring:
datasource:
# url: jdbc:mysql://148.70.59.92:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false
# username: xiongxiaoyang
# password: Lzslov123!
url: jdbc:mysql://148.70.59.92:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: xiongxiaoyang
password: Lzslov123!
@@ -17,7 +14,7 @@ spring:
config: classpath:ehcache.xml
thymeleaf:
mode: LEGACYHTML5 #去除thymeleaf的html严格校验thymeleaf.mode=LEGACYHTML5
cache: true # 是否开启模板缓存,默认true,建议在开发时关闭缓存,不然没法看到实时页面
cache: true # 是否开启模板缓存,默认true,建议在开发时关闭缓存,不然没法看到实时
freemarker:
template-loader-path: classpath:/templates #设定freemarker文件路径 默认为src/main/resources/templatestemplate-loader-path=classpath:/templates
charset: UTF-8 # 模板编码