I want to read the requestParams data from the url using HttpServletRequest
http://localhost:8080/api/type?name=xyz&age=20
The method in my controller will not have @RequestParam defined,it will be just
@RequestMapping(value = "/**", method = RequestMethod.GET)
public ResponseEntity<String> getResponse(
final HttpServletRequest request) {}
I want to read using request only the params not the entire url.
first, why you are define:
?
maybe you should use:
and read param :