[Solved] Why Spring documentation is not perfect [closed]


you are not sending RequestParam value, you need to mark it required=false
so your method will

public String greeting(@RequestParam(value = "name", required=false, defaultValue = "World") String name){

solved Why Spring documentation is not perfect [closed]