【发布时间】:2012-02-22 07:40:55
【问题描述】:
我有http://localhost:8080/api/create/之类的请求网址,控制器有以下代码
@RequestMapping(value = "/", method = RequestMethod.GET)
public ResponseEntity<String> getApiResponse(HttpServletRequest request)
throws Exception {}
这个方法怎么控制呢?我在春天有任何方法可以做到这一点,因为我希望请求映射 url 仅为“/”
【问题讨论】:
标签: java spring spring-mvc