拦截器的使用
bbbbln
这个作者很懒,什么都没留下…
展开
-
20161117移动端POST和GET接口的测试
测试POST和GET请求有些不一样,导致自己花了很久。 在POST请求时,用restTemplate.postForObject, 以为GET时,用restTemplate.getForObject 结果老是在request拦截器那里报错,说拿不到header,后来改用下面的方法通过GET请求: @Test public void testGetOftenTraveller() th原创 2016-11-17 11:52:41 · 790 阅读 · 0 评论 -
Spring MVC Handler Interceptor
Spring MVC’s handler interceptor is like a good friend and will help in time of need. Spring’s handler interceptor as rightly named, intercepts a request,just before the controller orjust after th转载 2016-11-18 11:48:01 · 667 阅读 · 0 评论 -
20161115做移动端接口总结
1、spring-mvc.xml<?xml version="1.0" encoding="UTF-8" ?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi=原创 2016-11-15 20:34:48 · 1578 阅读 · 0 评论 -
SpringMVC里拦截器preHandle里的参数究竟是什么意思
今天我的create和update老是报错:create接口: @RequestMapping(value = "/oftenTraveller/create", method = {RequestMethod.POST}) public ResponseEntity<Response<OftenTravellerDTO>> createOftenTraveller(HttpServletR原创 2016-11-20 13:56:41 · 46227 阅读 · 12 评论