java类org.springframework.beans.factory.config.YamlProcessor的实例源码

CasCoreBootstrapStandaloneConfiguration.java 文件源码 项目:cas-5.1.0 阅读 25 收藏 0 点赞 0 评论 0
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();
}


问题


面经


文章

微信
公众号

扫码关注公众号