swagger访问方式http://localhost:8080/vx/doc.html#/home
在方法中的参数为@RequestParam、@PathVaiable、无参时使用@GetMapping
在方法中参数为@RequestBody、多参、对象参数时使用@PostMapping
get与post的区别:
get后退时没事,但是post会被重新提交;
get会被缓存,post不会;
get发送数据长度受限(2048个字符),post无限制;
post更安全。
swagger访问方式http://localhost:8080/vx/doc.html#/home
在方法中的参数为@RequestParam、@PathVaiable、无参时使用@GetMapping
在方法中参数为@RequestBody、多参、对象参数时使用@PostMapping
get与post的区别:
get后退时没事,但是post会被重新提交;
get会被缓存,post不会;
get发送数据长度受限(2048个字符),post无限制;
post更安全。