Selaa lähdekoodia

接口匿名访问 /large

zhanghao 5 kuukautta sitten
vanhempi
commit
8bdc0f8964

+ 1 - 1
project-admin/src/main/resources/application-dev.yml

@@ -74,7 +74,7 @@ server:
   port: 8115
   servlet:
     # 应用的访问路径
-    context-path: /
+    context-path: /large
   tomcat:
     # tomcat的URI编码
     uri-encoding: UTF-8

+ 1 - 1
project-framework/src/main/java/com/project/framework/config/SecurityConfig.java

@@ -129,7 +129,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
                 // 静态资源,可匿名访问
                 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                 .antMatchers( "/sxgw/**","/sxgw/**/**","/sxgw/**/**/**","/basics/**", "/basics/**/**", "/build/**", "/build/**/**","/employee/**", "/employee/**/**","/health/**", "/health/**/**","/post/**", "/post/**/**","/property/**", "/property/**/**","/smart/**", "/smart/**/**","/video/**", "/video/**/**").permitAll()
-                .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
+                .antMatchers("/large/**", "/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
                 // 除上面外的所有请求全部需要鉴权认证
                 .anyRequest().authenticated()
                 .and()