diff --git a/src/main/java/com/pyc/campus/config/WebSecurityConfig.java b/src/main/java/com/pyc/campus/config/WebSecurityConfig.java index 817847be592b7f4a31f613474a267a64749211cd..984122a85112ea827468d0f165e85089cb3ce8f6 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 c6cb000649ac9c575df49b58a703d4a3c1075348..da4cba3fe114102343db6389a9707d538f4bc21e 100644 --- a/src/main/resources/templates/page/VerifyFriend.html +++ b/src/main/resources/templates/page/VerifyFriend.html @@ -226,6 +226,7 @@ + -