public class Restful extends Object implements Interceptor
| 构造器和说明 |
|---|
Restful() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
intercept(Invocation inv)
add edit 无需处理
GET /user ---> index
GET /user/id ---> show
POST /user ---> save
PUT /user/id ---> update
DELECT /user/id ---> delete
|
public void intercept(Invocation inv)
intercept 在接口中 InterceptorCopyright © 2017. All rights reserved.