@GetMapping

@RequestMapping("/login/login")
@RequestMapping(value="/login/login", method=RequestMethod.GET)
@GetMapping("/login/login)

 

@PostMapping

@RequestMapping(value="/login/login", method= RequestMethod.POST)
@PostMapping("/login/login")

 

하나의 메서드로 GET, POST 둘 다 처리하는 경우

@RequestMapping(value="/login/login", method={RequestMethod.GET, RequestMethod.POST})

 

 

반응형

+ Recent posts