new ClassPathResource("META-INF/spring-jpa.xml"),
new ClassPathResource("META-INF/spring-results.xml"), });
xmlReader.setResourceLoader(ctx);
xmlReader.setEntityResolver(new ResourceEntityResolver(ctx));
PropertyPlaceholderConfigurer config = new PropertyPlaceholderConfigurer();
config.setLocalOverride(true);
config.setProperties(properties);
config.setLocations(new ClassPathResource[] {
new ClassPathResource("jpa.properties"),
new ClassPathResource("archive-puids.properties"), });
ctx.addBeanFactoryPostProcessor(config);
ctx.refresh();