「Spring入門」value 属性とmethod 属性の使い方
1.value属性
@RequestMapping(value = “/user")
@RequestMapping(path = “/user")
@RequestMapping(value = { “/", “/index" })
@RequestMapping({ “/", “/index" })
2.method属性
POSTリクエスト
@RequestMapping(path = “/input", method = RequestMethod.POST)
GETリクエスト
@RequestMapping(path = “/input", method = RequestMethod.GET)
両方のリクエスト
@RequestMapping(path = “/input", method = { GET, POST })