<context:property-placeholder location="WEB-INF/classes/config.config"/>
config.config:
path=com
<import resource="../../conf/${path}/test.xml"/>
错误:org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [test.service.xml]; 嵌套异常是 java.lang.IllegalArgumentException:无法在 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions 解析占位符“路径”(XmlBeanDefinitionReader.java:412) 原因:java.lang.IllegalArgumentException:无法解析占位符org.springframework.util.PropertyPlaceholderHelper.parseStringValue 的“路径”(PropertyPlaceholderHelper.java:173)
${path} 不能用于导入,怎么办??