yonge 3 سال پیش
والد
کامیت
85870ef32f
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      mec-web/src/main/java/com/ym/mec/web/config/ResourceServerConfig.java

+ 2 - 2
mec-web/src/main/java/com/ym/mec/web/config/ResourceServerConfig.java

@@ -30,8 +30,8 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
                 .authenticationEntryPoint(baseAuthenticationEntryPoint)
                 .and()
                 .authorizeRequests()
-                /*.antMatchers("/task/**")
-                .hasIpAddress("0.0.0.0/0")*/
+                .antMatchers("/task/**")
+                .hasIpAddress("0.0.0.0/0")
                 .antMatchers("/v2/api-docs", "/classGroup/highClassGroups", "/code/*", "/api/*", "/appVersionInfo/queryByPlatform", "/eduDegree/*",
                         "/uploadFile", "/eduContracts/queryProduceContract", "/activity/doubleEleven2020Statis", "/replacementInstrument/queryPage",
                         "/replacementInstrumentActivity/queryReplacementsStat", "/eduStudentRegistration/queryPreApplyList",