摘要: 一、基于XML配置的方式 1.使用 PropertyPlaceholderConfigurer - 在 applicationContext.xml 中配置: 或者: - 之后就可以在代码中访问了: 2.使用 PropertiesFactoryBean - 注册 bean - 使用 3.使用 Res 阅读全文
posted @ 2018-09-03 13:08 陈先生丶 阅读(1049) 评论(0) 推荐(0) 编辑