摘要: package com.qmtt.tools; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org... 阅读全文
posted @ 2018-01-30 17:15 wujf 阅读(511) 评论(0) 推荐(0) 编辑
摘要: package com.qmtt.config; import javax.servlet.http.HttpServletRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.ControllerAdvice; impo... 阅读全文
posted @ 2018-01-30 11:48 wujf 阅读(126) 评论(0) 推荐(0) 编辑
摘要: @Configuration public class SpringWebConfig extends WebMvcConfigurationSupport { @Override public void configurePathMatch(PathMatchConfigurer configurer) { AntPathMatcher pathMatcher... 阅读全文
posted @ 2018-01-30 10:55 wujf 阅读(1083) 评论(0) 推荐(0) 编辑
摘要: @WebFilter(urlPatterns = "/*", filterName = "corsFilter") public class CorsFilter implements Filter { @Override public void destroy() { } @Override public void doFilter(ServletR... 阅读全文
posted @ 2018-01-30 10:53 wujf 阅读(151) 评论(0) 推荐(0) 编辑