【发布时间】:2015-08-14 00:41:51
【问题描述】:
在我的 Spring MVC 应用程序中,我想从指定的属性文件中读取 所有键/值。 我通过
将属性文件包含到我的 java 类中@PropertySource("classpath:user-form-validation-configuration.properties")
并且可以一次读取一个键
@Autowired
Environment env;
和env.getProperty("userIdEmail")
请帮助我如何将所有键/值作为 map
谢谢 手动
【问题讨论】:
标签: java spring spring-mvc dictionary properties