public class VelocityPropertyPlaceholderConfigurer
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
velocity 模式加载 properties
支持 properties 文件使用 velocity 标签控制,注入 VelocityContext 可定义标签内容。
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDEDEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparator| 构造器和说明 |
|---|
VelocityPropertyPlaceholderConfigurer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fillMergeProperties(Properties prop,
InputStream input) |
String |
getCharset() |
String |
getPlaceholderValue() |
RunEnvironment |
getRunEnvironment() |
protected void |
loadProperties(Properties props) |
protected void |
processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess,
Properties props) |
void |
setCharset(String charset) |
void |
setLocation(org.springframework.core.io.Resource location) |
void |
setLocations(org.springframework.core.io.Resource... locations) |
void |
setPlaceholderValue(String placeholderValue) |
void |
setRunEnvironment(RunEnvironment runEnvironment) |
parseStringValue, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeNamedoProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparatorconvertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrderpublic void setLocation(org.springframework.core.io.Resource location)
setLocation 在类中 org.springframework.core.io.support.PropertiesLoaderSupportpublic void setLocations(org.springframework.core.io.Resource... locations)
setLocations 在类中 org.springframework.core.io.support.PropertiesLoaderSupportprotected void processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactoryToProcess,
Properties props)
throws org.springframework.beans.BeansException
processProperties 在类中 org.springframework.beans.factory.config.PropertyPlaceholderConfigurerorg.springframework.beans.BeansExceptionpublic void fillMergeProperties(Properties prop, InputStream input)
protected void loadProperties(Properties props) throws IOException
loadProperties 在类中 org.springframework.core.io.support.PropertiesLoaderSupportIOExceptionpublic RunEnvironment getRunEnvironment()
public void setRunEnvironment(RunEnvironment runEnvironment)
public String getCharset()
public void setCharset(String charset)
public String getPlaceholderValue()
public void setPlaceholderValue(String placeholderValue)
Copyright © 2016. All rights reserved.