0
仿制药转换为Avro的模式我用下面的注解,但我得到之后org.apache.avro.SchemaParseException:未定义的名称:
public class Test2<T>
{
@AvroSchema("{\"type\":\"array\",\"items\":[\"null\",\"Test4\"]}")
private Set<T> test4;
}
public class Test4 {
public Integer getX() {
return x;
}
public void setX(Integer x) {
this.x = x;
}
public Test4(Integer x) {
this.x = x;
}
public Test4() {
}
private Integer x;
}
我来到这里的错误的例外是 org.apache .avro.SchemaParseException:未定义的名称:TEST4