springboot achieve restful api

1 comment

@RestController

@RequestMapping

@PostMapping

Wait

2 unified return json format of the return value

Use ResponseEntity can return to a unified format of the return value.

3 interface authentication

Use OAuth can be.

 

Guess you like

Origin www.cnblogs.com/hustdc/p/11519722.html