public static Map loadYamlProperties ( final Resource ... resource ) { val factory = new YamlPropertiesFactoryBean ( ) ; factory . setResolutionMethod ( YamlProcessor . ResolutionMethod . OVERRIDE ) ; factory . setResources ( resource ) ; factory . setSingleton ( true ) ; factory . afterPropertiesSet ( ) ; return factory . getObject ( ) ; }
Load yaml properties map .