@ResponseStatus: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Spring MVC Concepts")
 
 
Line 2: Line 2:


* [[Spring_MVC_Concepts#Controller_Annotations|Spring MVC Concepts]]
* [[Spring_MVC_Concepts#Controller_Annotations|Spring MVC Concepts]]
=Overview=
<syntaxhighlight lang='java'>
@PostMapping(...)
@ResponseStatus(HttpStatus.CREATED)
public A post(@RequestBody A a) {
  ...
}
</syntaxhighlight>

Latest revision as of 20:44, 12 March 2019

Internal

Overview

@PostMapping(...)
@ResponseStatus(HttpStatus.CREATED)
public A post(@RequestBody A a) {
  ...
}