@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @Documented public @interface Mapping
| Modifier and Type | Optional Element and Description |
|---|---|
String |
consumes
指定处理请求的提交内容类型(主要考虑与Swagger的描述兼容)
|
String |
description
描述
|
String[] |
headers
请求头(作为客户端时使用)
|
MethodType[] |
method
请求方式
|
boolean |
multipart
是否申明为多分片(否则为自动识别)
|
String |
name
名字
|
String |
path
路径
|
String |
produces
指定返回的内容类型(主要考虑与Swagger的描述兼容)
|
String |
value |
public abstract MethodType[] method
public abstract String consumes
public abstract String produces
public abstract String name
public abstract String description
public abstract String[] headers
Copyright © 2025. All rights reserved.