spring报错:java.io.FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]

java.io.FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]

原因:spring核心配置中,<context:property-placeholder location="jdbc.properties"/>,缺少classpath:
解决:<context:property-placeholder location="classpath:/jdbc.properties"/>

上一篇:springboot启动报错Could not resolve placeholder xxx


下一篇:记录hadoop3.2.2出现Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster问题