上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页
摘要: org.mybatis.generator mybatis-generator-maven-plugin 1.3.2 ${basedir}/src/main/resources/generatorConfig.xml ... 阅读全文
posted @ 2018-03-19 10:48 wujf 阅读(310) 评论(0) 推荐(0) 编辑
摘要: @RequestMapping("getAllUrl") @ResponseBody public Set getAllUrl(HttpServletRequest request) { Set result = new HashSet(); WebApplication... 阅读全文
posted @ 2018-03-14 17:18 wujf 阅读(233) 评论(0) 推荐(0) 编辑
摘要: package com.qmtt.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.Message; im... 阅读全文
posted @ 2018-02-26 16:27 wujf 阅读(230) 评论(0) 推荐(0) 编辑
摘要: org.bouncycastle bcprov-jdk16 1.46 package com.qmtt.service; import java.security.AlgorithmParameters; import java.security.Security; import j... 阅读全文
posted @ 2018-02-09 12:01 wujf 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: spring mvc 能过拦截器记录请求数据记录有很多种方式,主要有以下三种: 1:过滤器 2:HandlerInterceptor拦截器 3:Aspect接口控制器 但是就我个人所知要记录返回的数据,只能通过Aspect处理,以下是实现此需要的代码 阅读全文
posted @ 2018-01-23 20:55 wujf 阅读(6847) 评论(0) 推荐(0) 编辑
摘要: 要拦截首先想到的是拦截器,@RequestBody只能以流的方式读取,流被读过一次后,就不在存在了,会导致会续无法处理,因此不能直接读流 为了解决这个问题,思路如下: 1、读取流前先把流保存一下 2、使用过滤器拦截读取,再通过chain.doFilter(wrapper, response);将保存 阅读全文
posted @ 2018-01-23 20:46 wujf 阅读(4908) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页