【发布时间】:2015-02-20 16:50:43
【问题描述】:
如何在使用Spring 编写的REST 服务上自动记录任何传入的GET url 请求?
@RestController
public class MyRest {
@RequestMapping(method = RequestMethod.GET,
produces = MediaType.APPLICATION_XML_VALUE)
@ResponseBody
public ComplexRsp test() {
//...
}
}
我将cxf 用于soap,其中记录与使用@InInterceptors, @OutInterceptors 注释Web 服务一样简单。
春天有没有类似的东西可以休息?
【问题讨论】:
标签: java spring web-services rest