springmvc是两个容器,定义属性文件需要定义两个地方,service里面需要定义一次,springmvc里面需要定义一次。 参考:https://blog.csdn.net/sugartang23/article/details/73470143