Spring 本地获取文件

import org.springframework.util.ResourceUtils;

String cert_url = "/var/www/html/cert/apiclient_cert2.p12";
//本地获取
File file = ResourceUtils.getFile(cert_url);

 

posted @ 2021-11-19 14:18  Bob.Xie  阅读(126)  评论(0编辑  收藏  举报