【发布时间】:2012-03-12 00:16:39
【问题描述】:
我想使用 spring 读取请求 url,我有如下方法,客户端请求 url 类似于 http://localhost:8080/api/getName,我想读取(来自这个 url 的 /api/getName)
@Controller
public class TestController {
@RequestMapping(value = "/", method = RequestMethod.GET)
public ResponseEntity<String> getDetails(
final HttpServletRequest request,
final HttpServletResponse response) throws Exception {
}
【问题讨论】:
-
为什么?您是否要将自己的调度机制放在 Spring 中已有的调度机制之上?