SpringMVC 注解大全

 以下共26个注解:

ResponseStatus
ExceptionHandler

InitBinder
ModelAttribute
SessionAttribute
SessionAttributes

ResponseBody
RestController
ControllerAdvice
RestControllerAdvice

CookieValue
PathVariable
MatrixVariable(感觉命名为MatrixPathVariable更为合理)

Mapping
RequestMapping
GetMapping
PostMapping
PutMapping
PatchMapping
DeleteMapping

RequestAttribute
RequestBody
RequestHeader
RequestParam
RequestPart

CrossOrigin

  

部分注解对应处理类:

HandlerMethodArgumentResolver的抽象實現AbstractNamedValueMethodArgumentResolver下的子类

 

posted @ 2020-01-10 11:00  GordonDicaprio  阅读(891)  评论(0编辑  收藏