CloudConfigSupportConfiguration.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:spring-cloud-config-support 作者:
private Properties loadBackupProperty(String filePath) {
    PropertiesFactoryBean propertiesFactory = new PropertiesFactoryBean();
    Properties props = new Properties();
    try {
        FileSystemResource fileSystemResource = new FileSystemResource(filePath);
        propertiesFactory.setLocation(fileSystemResource);

        propertiesFactory.afterPropertiesSet();
        props = propertiesFactory.getObject();

    } catch (IOException e) {
        e.printStackTrace();
        return null;
    }

    return props;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号