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)