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.
@XMLSchemaType(name = "date")を持つ属性の顧客JAXBアダプターを作成したい
どうすればこれを達成できますか?
ありがとう、ハリッシュ
のジェネリック型パラメータを使用できますXmlAdapter。XmlAdapter次のような場合XmlAdapter<Date, MyDateType>、実際の XML 要素の型は「xs:date」で、Java オブジェクトの型は MyDateType である必要があります。
XmlAdapter
XmlAdapter<Date, MyDateType>