提交 1fd11694 编写于 作者: zlt2000's avatar zlt2000

改为懒加载

上级 665581a2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册