Skip to content

Instantly share code, notes, and snippets.

@learnit-codeit
Last active August 2, 2021 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save learnit-codeit/5ef4b3687c44f74d738ddc0508f9f713 to your computer and use it in GitHub Desktop.
Save learnit-codeit/5ef4b3687c44f74d738ddc0508f9f713 to your computer and use it in GitHub Desktop.
@RestController
@RequestMapping("/rest")
public class MyRestController {
@RequestMapping(value="/requestparamexample", method = RequestMethod.GET)
public ResponseEntity<String> getRequestParmParam(@RequestParam("value") String value) {
System.out.println("Request Param Value: "+value);
return new ResponseEntity<String>(value,HttpStatus.OK);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment