fuliqi
2024-07-01 472fd8635ca93be557fc2fd254366ce7633e4a95
src/main/java/com/ycl/jxkg/config/spring/security/SecurityConfigurer.java
@@ -85,7 +85,7 @@
                    .authorizeRequests()
                    .antMatchers(securityIgnoreUrls.toArray(ignores)).permitAll()
                    .antMatchers("/api/admin/**").hasRole(RoleEnum.ADMIN.getName())
                    .antMatchers("/api/student/**").hasRole(RoleEnum.STUDENT.getName())
                    .antMatchers("/api/student/**").hasAnyRole(RoleEnum.STUDENT.getName(),RoleEnum.ADMIN.getName())
                    .antMatchers("/api/register/**").anonymous()
                    .anyRequest().permitAll()
                    .and().exceptionHandling().accessDeniedHandler(restAccessDeniedHandler)