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 生成 bean,其中 getter-Methods 具有隐式初始化(延迟初始化),如下例所示。
public test.Address getAddress() { if (_address==null) { setAddress(new test.Address()); } return _address; }
这可能吗?