Last active
August 2, 2021 18:50
-
-
Save learnit-codeit/6c42c28b6fa6c90107e1a0fd5ad16431 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="/pathparamexample/{value}", method = RequestMethod.GET) | |
public ResponseEntity<String> getPathParam(@PathVariable String value) { | |
System.out.println("Path Variable 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