为什么这个spring识别不了properties文件里面的键值对

为什么这个spring识别不了properties文件里面的键值对是,但明明已经用
导入了

img

img

img

在引入命名空间时没有正确引入它的DTD解析文件,需要在xsi:schemaLocation=里面加上:

http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.2.xsd
这篇文章:Spring中配置 读取多个Properties 文件 也许有你想要的答案,你可以看看