Spring上下文配置文件springContext.xml找不到引入配置文件路径

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>

相关文章:

  • 2022-01-14
  • 2021-09-14
  • 2021-07-28
  • 2021-08-13
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2021-11-18
  • 2022-02-04
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案