在spring 3.0中,可以通过使用@value,对一些如xxx.properties文件中的文件,进行键值对的注入,例子如下: 目录 首先在applicationContext.xml中加入: <bean i……