Created
February 21, 2015 17:54
-
-
Save bassemZohdy/bd17a09d161d7ddc3f6e 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 HelloController{ | |
@RequestMapping | |
public String hello(@RequestParam(required=false) String name){ | |
if(StringUtils.isEmpty(name)) | |
return "Hello World !\n"; | |
else | |
return "Hello "+name+" !\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment