Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

spring boot return 201 created

@RequestMapping(value = "/exception", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity sendViaException() {
    throw new ForbiddenException();
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #spring #boot #return #created
ADD COMMENT
Topic
Name
7+5 =