? : 한 글자
@RequestMapping("/hello/?")
// /hello/1
: 여러 글자
@RequestMapping("/hello/*")
// /hello/asdf
** : 여러 패스
@RequestMapping("/hello/**")
// /hello/asdf/asdf/qwe/rwer
@Controller
@RequestMapping("/hello")
public class SampleController {
@RequestMapping("/**")
@ResponseBody
public String hello() {
return "hello";
}
}