| 异常错误 | 说明 |
|---|---|
| AnnotationException | |
| AnnotationRuntimeException | |
| GenericNameException | |
| GenericParamException |
| 注释类型 | 说明 |
|---|---|
| CodegenDefaultvalue |
用于定义数据类型字段/服务方法(端口)参数的特性
用于定义字段/参数的默认值 |
| CodegenEnumComment |
Marks the method of a Thrift enum that will return the value of the enum constant in Thrift.
|
| CodegenEnumValue |
Marks the method of a Thrift enum that will return the value of the enum constant in Thrift.
|
| CodegenInvalidValue |
用于定义数据类型字段/服务方法(端口)参数的特性
用于定义字段/参数的无效值 |
| CodegenLength |
用于定义数据类型字段/服务方法(端口)参数的特性
当字段/参数的类型为String、数组、或集合类型时,用于定义要求的元素个数或最大元素个数 |
| CodegenRequired |
用于定义数据类型字段/服务方法(端口)参数的特性
该字段/参数是否为可选的 |
| DefaultGenericTypes | |
| DeriveMethod |
衍生方法生成描述
|
| EnumCommentDirectory |
定义在生成的枚举变量支持类代码的commentDirectory字段
|
| EnumConstantType |
定义在枚举变量常量定义类
|
| EnumNameCommentDirectory |
定义在生成的枚举变量支持类代码的enumNameDirectory字段
|
| EnumNameDirectory |
定义在生成的枚举变量支持类代码的nameDirectory字段
|
| EnumSupportType |
定义在枚举变量支持类
|
| Generic |
是否生成泛型接口标志
|
| GenericParam |
是否生成泛型接口标志
|
| Remote |
远程实现方法
|
| Service |
服务定义
Service.bridgeType(),Service.targetType(),Service.genericTypes()用来定义成多态端口的方式例如: Service.portPrefix()为"db_",Service.bridgeType()定义为String,Service.targetType()定义为byte[],
Service.genericTypes()定义为{"URL","Base64"}那么对于一个方法 public int addImage(byte[] img)生成的的服务端口为:public int db_addImage(byte[] img)public int db_addImageByURL(String img)public int db_addImageByBase64(String img) |
| ServicePort |
服务端口(方法)定义
|
Copyright © 2024. All Rights Reserved.