springboot 获取resources目录下的文件

获取资源
ClassPathResource resource = new ClassPathResource("license.xml");
            获取输入流
            license = resource.getInputStream();
posted @ 2023-03-02 18:08  沧海红心_田帅  阅读(21)  评论(0)    收藏  举报  来源