Spring boot 打jar包获取static 目录下配置文件
摘要:普通情况下可以获得static目录,可是打jar后就获取不到了,因为没有tagert目录 之前是通过下面方法进行获取,可是打jar包后过去不到了 files = new File(ResourceUtils.getURL("classpath:static").getPath()); 获取方法 Cl
阅读全文
posted @ 2023-04-24 16:41
posted @ 2023-04-24 16:41
posted @ 2023-04-24 09:01
posted @ 2023-04-23 10:45
posted @ 2023-04-18 11:23
posted @ 2023-04-06 11:03