赞
踩
String url = ResourceUtils.getURL("classpath:").getPath();
这行代码获取了 resource目录下的路径信息。然后根据你的需要进行拿到需要的资源即可。