Last active
August 2, 2021 18:51
-
-
Save learnit-codeit/5ef4b3687c44f74d738ddc0508f9f713 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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