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.
我有财产
private boolean submitRequests = true;
但是当生成 WSDL 时,生成的 bean 不会保留默认的“true”值。有没有办法或任何注释可以使它保留默认值?
得到了答案...
@XmlElement(defaultValue = "true") public void setSubmitRequests(boolean submitRequests) { this.submitRequests = submitRequests; }
这会做到的