Spring 4 O/X は、その抽象化の背後でいくつかの XML アンマーシャラーをサポートしています。JAXB2 を使用します。
Spring は受信 XML をスキーマに対して検証できますか? 公式ドキュメントにも、構成を説明する spring-oxmスキーマにも何も見つかりませんでした。これは私の現在の構成であり、かなり標準的です。
<bean id="jaxb2Marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="marshallerProperties">
<map>
<!-- properties here -->
</map>
</property>
<property name="classesToBeBound">
<list>
<value>com.example.Message1</value>
<value>com.example.Message2</value>
</list>
</property>
</bean>