spring boot 除@Value 外,如何获得配置文件中的内容

配置文件位置: 读取文件中的内容代码: Resource resource = new ClassPathResource("/my-application.properties"); Properties properties = PropertiesLoaderUtils.loadProperties(resource); String name = (String) properties.g
相关文章
相关标签/搜索