yonge 3 years ago
parent
commit
85870ef32f

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