From 1fd11694c83378ede490837fd38ee210367b484d Mon Sep 17 00:00:00 2001 From: zlt Date: Sat, 14 Sep 2019 19:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=87=92=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/central/common/config/DefaultWebMvcConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zlt-commons/zlt-common-spring-boot-starter/src/main/java/com/central/common/config/DefaultWebMvcConfig.java b/zlt-commons/zlt-common-spring-boot-starter/src/main/java/com/central/common/config/DefaultWebMvcConfig.java index 36a715ac..5df572c7 100644 --- a/zlt-commons/zlt-common-spring-boot-starter/src/main/java/com/central/common/config/DefaultWebMvcConfig.java +++ b/zlt-commons/zlt-common-spring-boot-starter/src/main/java/com/central/common/config/DefaultWebMvcConfig.java @@ -10,6 +10,7 @@ import com.central.common.resolver.TokenArgumentResolver; import com.central.log.properties.TraceProperties; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Lazy; import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; @@ -24,6 +25,7 @@ import java.util.List; * @date 2019/8/5 */ public class DefaultWebMvcConfig extends WebMvcConfigurationSupport { + @Lazy @Autowired private UserService userService;