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: