Commit cab9bdeb by 袁伟铭

1.0.0

parent 1a088265
...@@ -38,8 +38,6 @@ spring: ...@@ -38,8 +38,6 @@ spring:
uri: lb://${file.name} uri: lb://${file.name}
predicates: predicates:
- Path=/file/** - Path=/file/**
# filters:
# - StripPrefix= 2
- id: user - id: user
uri: lb://${user.name} uri: lb://${user.name}
......
...@@ -76,7 +76,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -76,7 +76,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
Map<String, Set<String>> anonymousUrls = getAnonymousUrl(handlerMethodMap); Map<String, Set<String>> anonymousUrls = getAnonymousUrl(handlerMethodMap);
Set<String> allType = anonymousUrls.get(RequestMethodEnum.ALL.getType()); Set<String> allType = anonymousUrls.get(RequestMethodEnum.ALL.getType());
//不使用注解的时候在这添加url放行 //不使用注解的时候在这添加url放行
allType.add("/resource/app/**"); allType.add("/user/app/**");
httpSecurity httpSecurity
// 禁用 CSRF // 禁用 CSRF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment