| 程序包 | 说明 |
|---|---|
| org.springframework.javassist.bytecode | |
| org.springframework.javassist.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
MvcEndpointApiCtClassBuilder |
MvcEndpointApiCtClassBuilder.bind(MvcBound bound)
通过给动态类增加
@WebBound注解实现,数据的绑定 |
<T> MvcEndpointApiCtClassBuilder |
MvcEndpointApiCtClassBuilder.newMethod(Class<T> rtClass,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
根据参数构造一个新的方法
|
MvcEndpointApiCtClassBuilder |
MvcEndpointApiCtClassBuilder.newMethod(String methodName,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType,
MvcBound bound,
MvcParam<?>... params) |
| 限定符和类型 | 方法和说明 |
|---|---|
static javassist.bytecode.annotation.Annotation |
EndpointApiUtils.annotWebBound(javassist.bytecode.ConstPool constPool,
MvcBound bound)
构造 @WebBound 注解
|
static void |
EndpointApiUtils.methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
为方法添加 @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
static void |
EndpointApiUtils.methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType,
MvcBound bound,
MvcParam<?>[] params)
为方法添加 @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
Copyright © 2018. All rights reserved.