From 55635e098c51fbb56ed73a2b73766986d4095984 Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Mon, 20 Jan 2020 15:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- novel-front/src/main/resources/application.yml | 13 +++++++++++++ .../resources/templates/books/book_content.html | 10 ---------- .../main/resources/templates/books/book_index.html | 14 -------------- .../resources/templates/books/book_search.html | 12 ------------ .../main/resources/templates/books/index_v1.html | 11 ----------- .../main/resources/templates/books/index_v2.html | 11 ----------- .../resources/templates/books/mh_book_search.html | 10 ---------- .../templates/books/soft_book_search.html | 10 ---------- .../src/main/resources/templates/user/login.html | 12 ------------ 9 files changed, 13 insertions(+), 90 deletions(-) diff --git a/novel-front/src/main/resources/application.yml b/novel-front/src/main/resources/application.yml index a4f1abd..58c2a91 100644 --- a/novel-front/src/main/resources/application.yml +++ b/novel-front/src/main/resources/application.yml @@ -45,6 +45,19 @@ spring: + + + resources: + cache: + # 资源缓存时间,单位秒 + period: 604800 + # 开启gzip压缩 + chain: + gzipped: true + # 启用缓存 + cache: true + + # mvc: # static-path-pattern: /static/** #设定静态文件路径,js,css等 mybatis: diff --git a/novel-front/src/main/resources/templates/books/book_content.html b/novel-front/src/main/resources/templates/books/book_content.html index 0d8a35e..b26b42d 100644 --- a/novel-front/src/main/resources/templates/books/book_content.html +++ b/novel-front/src/main/resources/templates/books/book_content.html @@ -466,16 +466,6 @@ diff --git a/novel-front/src/main/resources/templates/books/book_search.html b/novel-front/src/main/resources/templates/books/book_search.html index 78d1ee6..210161a 100644 --- a/novel-front/src/main/resources/templates/books/book_search.html +++ b/novel-front/src/main/resources/templates/books/book_search.html @@ -227,18 +227,6 @@ diff --git a/novel-front/src/main/resources/templates/books/index_v2.html b/novel-front/src/main/resources/templates/books/index_v2.html index 2f4b801..156695f 100644 --- a/novel-front/src/main/resources/templates/books/index_v2.html +++ b/novel-front/src/main/resources/templates/books/index_v2.html @@ -284,17 +284,6 @@ diff --git a/novel-front/src/main/resources/templates/books/mh_book_search.html b/novel-front/src/main/resources/templates/books/mh_book_search.html index e34df82..d4bd07b 100644 --- a/novel-front/src/main/resources/templates/books/mh_book_search.html +++ b/novel-front/src/main/resources/templates/books/mh_book_search.html @@ -238,16 +238,6 @@