<-- xml视图,Jaxb2Marshaller,需要配置对象和对象添加Annotation xml注解,不需要添加额外的jar包 -->
<bean name="jaxb2MarshallingView" class="org.springframework.web.servlet.view.xml.MarshallingView">
<constructor-arg>
<bean class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="classesToBeBound">
<array>
<value>com.aa.User</value>
<value>com.aa.AccountBean</value>
</array>
</property>
</bean>
</constructor-arg>
</bean>
<bean name="jaxb2MarshallingView"
class="cn.meteor.spring.openApi.web.servlet.view.xml.MarshallingView">
<property name="marshaller" ref="jaxbMarshall"></property>
</bean>
<oxm:jaxb2-marshaller id="jaxbMarshall">
<oxm:class-to-be-bound name="com.aa.User" />
<oxm:class-to-be-bound name="com.aa.AccountBean" />
</oxm:jaxb2-marshaller>