Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这这可能吗?
所以如果我有 jaxb 课程
package com.example.client.jaxb.beans AccountInfo.java Contact.java
我可以生成
package com.example.client.jaxb.beans IApplicationBeans.java AccountInfo.java implements IApplicationBeans Contact.java implements IApplicationBeans
这是不可能的。jaxb 编译器希望尽可能地保持“像 bean 一样”。由于 bean 是 pojo,因此将它们放在继承结构中没有多大意义。