把扫描properties.xml文件放在springmvc.xml文件中,即可生效. 跟spring容器和子容器启动顺序有关,这样配置好后,可以在intercreptor中使用@value注解,进行软编码.