Skip to content

Instantly share code, notes, and snippets.

@wkorando

wkorando/RequestParam.java

Last active Mar 31, 2020
Embed
What would you like to do?
@GetMapping("/name")
public String helloQueryMessage(@RequestParam String firstName, @RequestParam String lastName) {
return String.format("Hello %s %s!", firstName, lastName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.