| | |
| | | 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; |
| | |
| | | @Configuration |
| | | public class WebConfig extends WebMvcConfigurationSupport { |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | private SysService sysService; |
| | | |
| | | /** |
| | | * 获取拦截器对象 |
| | |
| | | * @return |
| | | */ |
| | | public AuthInterceptor getAuthBean() { |
| | | return new AuthInterceptor(tokenService); |
| | | return new AuthInterceptor(sysService); |
| | | } |
| | | |
| | | /** |