public class DecryptPropertyPlaceholderConfigurer
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparator
构造器和说明 |
---|
DecryptPropertyPlaceholderConfigurer() |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
convertProperty(java.lang.String propertyName,
java.lang.String propertyValue) |
static java.lang.String |
decncryptString(java.lang.String str)
解密密码串
|
static java.lang.String |
encryptString(java.lang.String str)
加密密码串
|
protected java.lang.String |
resolvePlaceholder(java.lang.String placeholder,
java.util.Properties props) |
processProperties, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparator
convertProperties, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
public static java.lang.String encryptString(java.lang.String str) throws java.lang.Exception
str
- 明文java.lang.Exception
- 出错会抛出异常public static java.lang.String decncryptString(java.lang.String str) throws java.lang.Exception
str
- 密文java.lang.Exception
- 出错会抛出异常protected java.lang.String convertProperty(java.lang.String propertyName, java.lang.String propertyValue)
convertProperty
在类中 org.springframework.beans.factory.config.PropertyResourceConfigurer
protected java.lang.String resolvePlaceholder(java.lang.String placeholder, java.util.Properties props)
resolvePlaceholder
在类中 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer