| | |
| | | import com.alibaba.fastjson.support.config.FastJsonConfig; |
| | | import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.terra.system.interceptor.AuthInterceptor; |
| | | import com.terra.common.interceptor.AuthInterceptor; |
| | | import com.terra.common.service.CommonService; |
| | | import com.terra.system.service.all.SysService; |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | * Web配置类 |
| | | * @author WWW |
| | | */ |
| | | @Configuration |
| | | //@Configuration |
| | | public class WebConfig extends WebMvcConfigurationSupport { |
| | | @Resource |
| | | private SysService sysService; |
| | | CommonService commonService; |
| | | |
| | | @Override |
| | | public void addViewControllers(ViewControllerRegistry registry) { |
| | |
| | | * @return |
| | | */ |
| | | public AuthInterceptor getAuthBean() { |
| | | return new AuthInterceptor(sysService); |
| | | return new AuthInterceptor(commonService); |
| | | } |
| | | |
| | | /** |