From 0332802fe5f3dc8202276d74ac0124d771ae924f Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Sun, 15 Oct 2023 19:13:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(crawl):=20=E8=B4=A6=E5=8F=B7=E9=80=80?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/config/SecurityConfiguration.java | 3 ++ .../templates/crawl/crawlSingleTask_add.html | 37 ++++++++-------- .../templates/crawl/crawlSingleTask_list.html | 18 +++----- .../templates/crawl/crawlSource_add.html | 12 +---- .../templates/crawl/crawlSource_list.html | 10 +---- .../templates/crawl/crawlSource_test.html | 10 +---- .../templates/crawl/crawlSource_update.html | 44 ++++++++----------- .../resources/templates/crawl/header.html | 28 ++++++++++++ .../src/main/resources/templates/login.html | 2 +- 9 files changed, 78 insertions(+), 86 deletions(-) create mode 100644 novel-crawl/src/main/resources/templates/crawl/header.html diff --git a/novel-crawl/src/main/java/com/java2nb/novel/core/config/SecurityConfiguration.java b/novel-crawl/src/main/java/com/java2nb/novel/core/config/SecurityConfiguration.java index 01d82db..3524b9e 100644 --- a/novel-crawl/src/main/java/com/java2nb/novel/core/config/SecurityConfiguration.java +++ b/novel-crawl/src/main/java/com/java2nb/novel/core/config/SecurityConfiguration.java @@ -55,6 +55,9 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter { .antMatchers("/css/**").permitAll() .antMatchers("/**").hasRole("ADMIN") .and().formLogin().loginPage("/login.html").loginProcessingUrl("/login").permitAll() + .and().logout() + .logoutUrl("/logout") + .logoutSuccessUrl("/") .and().httpBasic(); } diff --git a/novel-crawl/src/main/resources/templates/crawl/crawlSingleTask_add.html b/novel-crawl/src/main/resources/templates/crawl/crawlSingleTask_add.html index f478835..ec33b81 100644 --- a/novel-crawl/src/main/resources/templates/crawl/crawlSingleTask_add.html +++ b/novel-crawl/src/main/resources/templates/crawl/crawlSingleTask_add.html @@ -12,15 +12,7 @@ -
- +
@@ -30,7 +22,7 @@ @@ -47,7 +39,7 @@

采集信息填写(示例均为笔趣阁:http://www.mcmssc.com)