controller层如何获取配置文件中的值
1、首先打开myeclipse新建webproject,操作如下图。

3、在testproperty文件利用按钮调用TestController层,操作见下图。

5、applicationContext.xml文件中引入test.properties文件,<context:property幻腾寂埒-placeholder location="classpath:/test.properties" />,操作见下图。

7、运行效果,如下图所示。

1、首先打开myeclipse新建webproject,操作如下图。
3、在testproperty文件利用按钮调用TestController层,操作见下图。
5、applicationContext.xml文件中引入test.properties文件,<context:property幻腾寂埒-placeholder location="classpath:/test.properties" />,操作见下图。
7、运行效果,如下图所示。