Преглед на файлове

老师确认增加群组

周箭河 преди 5 години
родител
ревизия
fcf28a04b9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mec-student/src/main/java/com/ym/mec/student/config/ResourceServerConfig.java

+ 1 - 1
mec-student/src/main/java/com/ym/mec/student/config/ResourceServerConfig.java

@@ -25,7 +25,7 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
 	@Override
 	public void configure(HttpSecurity http) throws Exception {
 		http.csrf().disable().exceptionHandling().accessDeniedHandler(baseAccessDeniedHandler).authenticationEntryPoint(baseAuthenticationEntryPoint).and()
-				.authorizeRequests().antMatchers("/v2/api-docs","/studentOrder/notify","/code/*").permitAll().anyRequest().authenticated().and().httpBasic();
+				.authorizeRequests().antMatchers("/v2/api-docs","/studentOrder/notify","/code/*","/register/add").permitAll().anyRequest().authenticated().and().httpBasic();
 	}
 
 	@Override