| 程序包 | 说明 |
|---|---|
| org.springframework.javassist.bytecode | |
| org.springframework.javassist.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> MvcEndpointApiCtClassBuilder |
MvcEndpointApiCtClassBuilder.newMethod(Class<T> rtClass,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
根据参数构造一个新的方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
static javassist.bytecode.annotation.Annotation |
EndpointApiUtils.annotMethodMapping(javassist.bytecode.ConstPool constPool,
MvcMethod method)
根据参数 构造 @RequestMapping | @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
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.methodBody(javassist.CtMethod ctMethod,
MvcMethod method)
设置方法体
|
Copyright © 2018. All rights reserved.