本文整理汇总了Java中org.springframework.oxm.jaxb.Jaxb2Marshaller.setSchema方法的典型用法代码示例。如果您正苦于以下问题:Java Jaxb2Marshaller.setSchema方法的具体用法?Java Jaxb2Marshaller.setSchema怎么用?Java Jaxb2Marshaller.setSchema使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.oxm.jaxb.Jaxb2Marshaller
的用法示例。
在下文中一共展示了Jaxb2Marshaller.setSchema方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: lukeMooselikeharvestsExportJaxbMarshaller
import org.springframework.oxm.jaxb.Jaxb2Marshaller; //导入方法依赖的package包/类
@Bean(name = "lukeMooselikeharvestsExportMarshaller")
public Jaxb2Marshaller lukeMooselikeharvestsExportJaxbMarshaller() {
final Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
marshaller.setMarshallerProperties(getMarshallerDefaultProperties());
marshaller.setContextPath("fi.riista.integration.luke_export.mooselikeharvests");
marshaller.setSchema(new ClassPathResource("/xsd/luke/export-mooselikeharvests-v1.xsd"));
return activateLoggingValidation(marshaller);
}
示例2: lupaHallintaExportJaxbMarshaller
import org.springframework.oxm.jaxb.Jaxb2Marshaller; //导入方法依赖的package包/类
@Bean(name = "lupaHallintaExportMarshaller")
public Jaxb2Marshaller lupaHallintaExportJaxbMarshaller() {
final Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
marshaller.setMarshallerProperties(getMarshallerDefaultProperties());
marshaller.setPackagesToScan("fi.riista.integration.lupahallinta.model");
marshaller.setSchema(new ClassPathResource("/xsd/lupahallinta/LupaHallintaExport.xsd"));
return marshaller;
}
示例3: lupaHallintaPermitAreaExportJaxbMarshaller
import org.springframework.oxm.jaxb.Jaxb2Marshaller; //导入方法依赖的package包/类
@Bean(name = "lupaHallintaPermitAreaExportMarshaller")
public Jaxb2Marshaller lupaHallintaPermitAreaExportJaxbMarshaller() {
final Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
marshaller.setMarshallerProperties(getMarshallerDefaultProperties());
marshaller.setPackagesToScan("fi.riista.integration.lupahallinta.permitarea");
marshaller.setSchema(new ClassPathResource("/xsd/lupahallinta/PermitAreaExport.xsd"));
return marshaller;
}
示例4: srvaRvrExportJaxbMarshaller
import org.springframework.oxm.jaxb.Jaxb2Marshaller; //导入方法依赖的package包/类
@Bean(name = "srvaRvrExportMarshaller")
public Jaxb2Marshaller srvaRvrExportJaxbMarshaller() {
final Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
marshaller.setMarshallerProperties(getMarshallerDefaultProperties());
marshaller.setPackagesToScan("fi.riista.integration.srva.rvr");
marshaller.setSchema(new ClassPathResource("/xsd/srva/rvr/SrvaRvrExport.xsd"));
return marshaller;
}