Spring上下文配置文件springContext.xml找不到引入配置文件路径
springContex.xml文件中
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="file:/usr/local/sokoloan/conf/application.properties"/>
</bean>
*value改成classpath即可*
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="classpath:application-dev.properties"/>
</bean>