摘要: 在项目中我们一般将配置信息(如数据库的配置信息)配置在一个properties文件中,如下: 接着在Spring的配置文件中读取,有两种方式: 方式一: 方式二: 我们知道,不论是使用PropertyPlaceholderConfigurer还是通过context:property-placehol 阅读全文