private static Map<Object, Object> loadYamlProperties(final Resource... resource) {
final YamlPropertiesFactoryBean factory = new YamlPropertiesFactoryBean();
factory.setResolutionMethod(YamlProcessor.ResolutionMethod.OVERRIDE);
factory.setResources(resource);
factory.setSingleton(true);
factory.afterPropertiesSet();
return factory.getObject();
}
java类org.springframework.beans.factory.config.YamlProcessor的实例源码
CasCoreBootstrapStandaloneConfiguration.java 文件源码
项目:cas-5.1.0
阅读 25
收藏 0
点赞 0
评论 0