I want to read a request url using spring ,i have method like below and the client request url is like http://localhost:8080/api/getName ,i want to read (/api/getName from this url)
@Controller
public class TestController {
@RequestMapping(value = "/", method = RequestMethod.GET)
public ResponseEntity<String> getDetails(
final HttpServletRequest request,
final HttpServletResponse response) throws Exception {
}