| 程序包 | 说明 |
|---|---|
| org.springframework.javassist.bytecode | |
| org.springframework.javassist.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> EndpointApiCtClassBuilder |
EndpointApiCtClassBuilder.newMethod(Class<T> rtClass,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
根据参数构造一个新的方法
|
EndpointApiCtClassBuilder |
EndpointApiCtClassBuilder.newMethod(String methodName,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType,
MvcBound bound,
MvcParam<?>... params) |
<T> EndpointApiCtClassBuilder |
EndpointApiCtClassBuilder.removeMethod(String methodName,
MvcParam<?>... params) |
| 限定符和类型 | 方法和说明 |
|---|---|
static javassist.bytecode.annotation.Annotation[][] |
EndpointApiUtils.annotParams(javassist.bytecode.ConstPool constPool,
MvcParam<?>... params)
构造 @CookieValue | @MatrixVariable | @PathVariable | @RequestAttribute | @RequestBody | @RequestHeader
| @RequestParam | @RequestPart 参数注解
|
static javassist.CtClass[] |
EndpointApiUtils.makeParams(javassist.ClassPool pool,
MvcParam<?>... params) |
static void |
EndpointApiUtils.methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
为方法添加 @WebBound | @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 © 2019. All rights reserved.