-
-
Save igorlukanin/3c16cde6ea711a77978a44c9fd96a43b 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 | |
class GreetingController { | |
val counter = AtomicLong() | |
@GetMapping("/greeting") | |
fun greeting(@RequestParam(value = "name", defaultValue = "World") name: String) = | |
Greeting(counter.incrementAndGet(), "Hello, $name") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment