记得上下班打卡 | git大法好,push需谨慎

Commit 3f56deab authored by 张国柄's avatar 张国柄

tag:停用stone.ssovalid;

parent 34032ef9
package com.liquidnet.common.web.config; package com.liquidnet.common.web.config;
import com.liquidnet.common.web.filter.GlobalAuthorityInterceptor;
import com.liquidnet.common.web.filter.GlobalLogTrackInterceptor; import com.liquidnet.common.web.filter.GlobalLogTrackInterceptor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
...@@ -10,7 +11,9 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupp ...@@ -10,7 +11,9 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupp
@Configuration @Configuration
public class WebMvcConfig extends WebMvcConfigurationSupport { public class WebMvcConfig extends WebMvcConfigurationSupport {
@Autowired @Autowired
GlobalLogTrackInterceptor globalLogTrackInterceptor; public GlobalLogTrackInterceptor globalLogTrackInterceptor;
@Autowired
public GlobalAuthorityInterceptor globalAuthorityInterceptor;
@Override @Override
public void addResourceHandlers(ResourceHandlerRegistry registry) { public void addResourceHandlers(ResourceHandlerRegistry registry) {
......
...@@ -14,7 +14,6 @@ import org.slf4j.Logger; ...@@ -14,7 +14,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.AntPathMatcher; import org.springframework.util.AntPathMatcher;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
...@@ -64,8 +63,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter { ...@@ -64,8 +63,7 @@ public class GlobalAuthorityInterceptor extends HandlerInterceptorAdapter {
@Autowired @Autowired
JwtValidator jwtValidator; JwtValidator jwtValidator;
@Autowired @Autowired(required = false)
@Lazy
FeignAuthorityClient feignAuthorityClient; FeignAuthorityClient feignAuthorityClient;
@Override @Override
......
...@@ -126,7 +126,7 @@ global-auth: ...@@ -126,7 +126,7 @@ global-auth:
- ${liquidnet.info.context}/user/logs/in2111 - ${liquidnet.info.context}/user/logs/in2111
- ${liquidnet.info.context}/user/logs/de2111 - ${liquidnet.info.context}/user/logs/de2111
oncheck-url-pattern: oncheck-url-pattern:
- ${liquidnet.info.context}/** # - ${liquidnet.info.context}/**
# ----------------------------------------------------------- # -----------------------------------------------------------
......
...@@ -8,8 +8,6 @@ import org.springframework.web.servlet.config.annotation.InterceptorRegistry; ...@@ -8,8 +8,6 @@ import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
@Configuration @Configuration
public class StoneWebMvcConfig extends WebMvcConfig { public class StoneWebMvcConfig extends WebMvcConfig {
@Autowired
GlobalAuthorityInterceptor globalAuthorityInterceptor;
@Override @Override
protected void addInterceptors(InterceptorRegistry registry) { protected void addInterceptors(InterceptorRegistry registry) {
......
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