All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ext_ext.mybatisext.environment.PropertyPlaceholderHelperExt Maven / Gradle / Ivy

package com.ext_ext.mybatisext.environment;

import java.util.Set;

import org.springframework.util.PropertyPlaceholderHelper;


/**
 * 处理不赋值的情况
 * 

* @author 宋汝波 * @date 2014年11月14日 * @version 1.0.0 */ public class PropertyPlaceholderHelperExt extends PropertyPlaceholderHelper { public PropertyPlaceholderHelperExt( String placeholderPrefix, String placeholderSuffix, String valueSeparator, boolean ignoreUnresolvablePlaceholders ) { super(placeholderPrefix, placeholderSuffix, valueSeparator, ignoreUnresolvablePlaceholders); } @Override protected String parseStringValue( String strVal, PlaceholderResolver placeholderResolver, Set visitedPlaceholders ) { String value = super.parseStringValue(strVal, placeholderResolver, visitedPlaceholders); if ( value.startsWith("$") ) { return ""; } return value; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy