管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-10-26 394935af53da986ae1108b3d08022279781f8f34
src/main/java/com/lf/server/config/WebConfig.java
@@ -4,7 +4,7 @@
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import com.lf.server.interceptor.AuthInterceptor;
import com.lf.server.service.sys.TokenService;
import com.lf.server.service.all.SysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
@@ -21,7 +21,7 @@
@Configuration
public class WebConfig extends WebMvcConfigurationSupport {
    @Autowired
    private TokenService tokenService;
    private SysService sysService;
    /**
     * 获取拦截器对象
@@ -29,7 +29,7 @@
     * @return
     */
    public AuthInterceptor getAuthBean() {
        return new AuthInterceptor(tokenService);
        return new AuthInterceptor(sysService);
    }
    /**