From 2894649b998915cac5ed55c60bdd5c3b5b15385e Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Thu, 2 Feb 2023 19:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/java/com/xkrs/utils/PhotoUtil.java | 4 ++-- src/main/resources/log4j2.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 121fbc2..61ac5cc 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,7 @@ org.springframework.boot spring-boot-starter-websocket - provided + org.springframework.boot diff --git a/src/main/java/com/xkrs/utils/PhotoUtil.java b/src/main/java/com/xkrs/utils/PhotoUtil.java index 10ff940..6144273 100644 --- a/src/main/java/com/xkrs/utils/PhotoUtil.java +++ b/src/main/java/com/xkrs/utils/PhotoUtil.java @@ -79,12 +79,12 @@ public class PhotoUtil { //uuid生成新的文件名 newName = UUID.randomUUID().toString() + suffix; //将图片保存到本地/usr/etc/images/Folder - File file1 = new File("/home/sxy/server/fire_point/firePointImage/"); + File file1 = new File("/home/lcq/server/fire_point/firePointImage/"); //File file1 = new File("E:/file/work/image/"); if (!file1.exists()) { file1.mkdirs(); } - String path = "/home/sxy/server/fire_point/firePointImage/" + newName; + String path = "/home/lcq/server/fire_point/firePointImage/" + newName; //String path = "E:/file/work/image/" + newName; String uploadPaths = "/firePointImage/" + newName; //实现上传 diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index b099c42..818f7cb 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -12,7 +12,7 @@ - +