From 2695e2d1abda72917397c327d50c6a86d11a810e Mon Sep 17 00:00:00 2001 From: 7wc98#14 <2923616405@qq.com> Date: Tue, 5 Jan 2021 12:46:02 +0800 Subject: [PATCH] Modify --- .../com/pyc/campus/config/WebSecurityConfig.java | 12 ++++++++++++ src/main/resources/templates/page/VerifyFriend.html | 13 +++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/pyc/campus/config/WebSecurityConfig.java b/src/main/java/com/pyc/campus/config/WebSecurityConfig.java index 817847b..984122a 100644 --- a/src/main/java/com/pyc/campus/config/WebSecurityConfig.java +++ b/src/main/java/com/pyc/campus/config/WebSecurityConfig.java @@ -32,6 +32,18 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() + .antMatchers("/campus").permitAll() + .antMatchers("/aboutLearn").permitAll() + .antMatchers("/aboutEnglish").permitAll() + .antMatchers("/aboutMath").permitAll() + .antMatchers("/aboutPhilosophy").permitAll() + .antMatchers("/sign").permitAll() + .antMatchers("/toCheckFrozen").permitAll() + .antMatchers("/static/**").permitAll() + .antMatchers("/static/**/**").permitAll() + .antMatchers("/static/**/**/**").permitAll() + .antMatchers("/images/**/**").permitAll() + .anyRequest().authenticated() .and().formLogin() .loginPage("/login") .failureUrl("/login?error") diff --git a/src/main/resources/templates/page/VerifyFriend.html b/src/main/resources/templates/page/VerifyFriend.html index c6cb000..da4cba3 100644 --- a/src/main/resources/templates/page/VerifyFriend.html +++ b/src/main/resources/templates/page/VerifyFriend.html @@ -226,6 +226,7 @@ + -