0

我有一个生成的模式:

public class A(){
    int f;
    int g;
}

我希望生成的类是:

public class A(){
    String f;
    int g;
}

ps:我只想更改这个(“f”)特定字段。

我尝试过使用 jaxb 绑定(通过使用文件 binding.xjb)但没有成功。有没有办法使用这个功能来做到这一点?这是正确的方法吗?

4

0 回答 0