From f5a9a7423f903a9b0e06094ef54eaa890ccc696a Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Tue, 18 Mar 2025 20:22:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83web?= =?UTF-8?q?=E9=9D=99=E6=80=81=E8=B5=84=E6=BA=90=E7=9B=AE=E5=BD=95=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- novel-admin/src/main/resources/application.yml | 6 ------ novel-common/src/main/resources/application-common.yml | 3 --- novel-front/src/main/resources/application-prod.yml | 5 +++-- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/novel-admin/src/main/resources/application.yml b/novel-admin/src/main/resources/application.yml index 5cc1028..16fae56 100644 --- a/novel-admin/src/main/resources/application.yml +++ b/novel-admin/src/main/resources/application.yml @@ -27,9 +27,6 @@ spring: max-file-size: 100MB max-request-size: 100MB - devtools: - restart: - enabled: true main: allow-bean-definition-overriding: true @@ -39,9 +36,6 @@ mybatis: map-underscore-to-camel-case: true mapper-locations: mybatis/**/*Mapper.xml typeAliasesPackage: com.java2nb.**.domain -#[弃用]配置缓存和session存储方式,默认ehcache,可选redis,[弃用]调整至 spring cache type【shiro.用户,权限,session,spring.cache通用】 -#[弃用]cacheType: ehcache - logging: config: classpath:logback-boot.xml diff --git a/novel-common/src/main/resources/application-common.yml b/novel-common/src/main/resources/application-common.yml index be2c512..419b9ec 100644 --- a/novel-common/src/main/resources/application-common.yml +++ b/novel-common/src/main/resources/application-common.yml @@ -2,9 +2,6 @@ spring: datasource: url: jdbc:shardingsphere:absolutepath:${user.dir}/config/shardingsphere-jdbc.yml driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver - cache: - ehcache: - config: classpath:ehcache.xml thymeleaf: mode: LEGACYHTML5 #去除thymeleaf的html严格校验thymeleaf.mode=LEGACYHTML5 cache: false # 是否开启模板缓存,默认true,建议在开发时关闭缓存,不然没法看到实时 diff --git a/novel-front/src/main/resources/application-prod.yml b/novel-front/src/main/resources/application-prod.yml index 5378c0f..de13d4c 100644 --- a/novel-front/src/main/resources/application-prod.yml +++ b/novel-front/src/main/resources/application-prod.yml @@ -3,12 +3,13 @@ spring: import: classpath:application-common-prod.yml #静态文件路径配置 - resources: - static-locations: file:${user.dir}/templates/${templates.name}/static/ #thymeleaf模版路径配置 thymeleaf: prefix: file:${user.dir}/templates/${templates.name}/html/ suffix: .html + web: + resources: + static-locations: file:${user.dir}/templates/${templates.name}/static/ #模版配置 templates: