From 0b4add1cd1efac74fa6079ca34944d4e35f75578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E4=B8=B6=E8=A8=80?= Date: Tue, 24 May 2022 00:18:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=90=8E=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/jieyue/common/utils/FileUtil.java | 2 +- src/main/resources/application.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/example/jieyue/common/utils/FileUtil.java b/src/main/java/com/example/jieyue/common/utils/FileUtil.java index 5e4e5d5..045f5be 100644 --- a/src/main/java/com/example/jieyue/common/utils/FileUtil.java +++ b/src/main/java/com/example/jieyue/common/utils/FileUtil.java @@ -21,7 +21,7 @@ public class FileUtil { String classpath; public FileUtil() throws FileNotFoundException { - this.classpath = ResourceUtils.getFile("classpath:/static").getPath()+"\\"; + this.classpath = ResourceUtils.getFile("classpath:/static").getPath()+"/"; } /** diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 9fb9d90..e59eb1d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,5 +1,4 @@ -site-url: 119.91.222.184 -# site-url: 127.0.0.1 +site-url: 127.0.0.1 server: port: 80 tomcat: