📜  spring boot return 201 created - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:34.563000             🧑  作者: Mango

代码示例1
@RequestMapping(value = "/exception", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity sendViaException() {
    throw new ForbiddenException();
}