class YamlConfigParser extends AbstractConfigParser {

    private static final List<ConfigFileTypeEnum> CONFIG_TYPES = Lists.newArrayList(
            ConfigFileTypeEnum.YML, ConfigFileTypeEnum.YAML);

    @Override
    public List<ConfigFileTypeEnum> types() {
        return CONFIG_TYPES;
    }

    @Override
    public Map<Object, Object> doParse(String content) {<FILL_FUNCTION_BODY>}
}


        if (StringUtils.isEmpty(content)) {
            return Collections.emptyMap();
        }
        YamlPropertiesFactoryBean bean = new YamlPropertiesFactoryBean();
        bean.setResources(new ByteArrayResource(content.getBytes()));
        return bean.getObject();
    
<methods>public non-sealed void <init>() ,public Map<java.lang.Object,java.lang.Object> doParse(java.lang.String, java.lang.String) throws java.io.IOException,public boolean supports(org.dromara.dynamictp.common.em.ConfigFileTypeEnum) <variables>