当前位置:网站首页>Summary of knowledge points of Jingtao project

Summary of knowledge points of Jingtao project

2020-11-07 23:07:49 BolunWu

restFul

Business needs :

Realize the page Jump of users
url:http://localhost:8091/page/item-add page :item-add
http://localhost:8091/page/item-list page :item-list
Can we use a method to realize the jump function of general page
If you can get it dynamically url The parameters in can be used to jump the page .restFul style ...

1.restFul grammar :

1. Parameter must use "/" Separate ;
2. Parameter must use {} Form package
3. Parameters must be received using @PathVariable obtain

2.restFul Style usage

Using different request types , Define unused business functions
type="GET" Query business
type="POST" New operation
type="PUT" update operation
type="DELETE" Delete operation

版权声明
本文为[BolunWu]所创,转载请带上原文链接,感谢