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",