This commit is contained in:
liuchengqian 2023-02-02 19:53:40 +08:00
parent 49e06769c3
commit 2894649b99
3 changed files with 4 additions and 4 deletions

View File

@ -65,7 +65,7 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId> <artifactId>spring-boot-starter-websocket</artifactId>
<scope>provided</scope> <!-- <scope>provided</scope>-->
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -79,12 +79,12 @@ public class PhotoUtil {
//uuid生成新的文件名 //uuid生成新的文件名
newName = UUID.randomUUID().toString() + suffix; newName = UUID.randomUUID().toString() + suffix;
//将图片保存到本地/usr/etc/images/Folder //将图片保存到本地/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/"); //File file1 = new File("E:/file/work/image/");
if (!file1.exists()) { if (!file1.exists()) {
file1.mkdirs(); 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 path = "E:/file/work/image/" + newName;
String uploadPaths = "/firePointImage/" + newName; String uploadPaths = "/firePointImage/" + newName;
//实现上传 //实现上传

View File

@ -12,7 +12,7 @@
<!-- 定义日志存储的路径 --> <!-- 定义日志存储的路径 -->
<!--<property name="FILE_PATH" value="/home/web/logs/forest-fire-service" />--> <!--<property name="FILE_PATH" value="/home/web/logs/forest-fire-service" />-->
<!--<property name="FILE_PATH" value="E:/log4j2/fire_point" />--> <!--<property name="FILE_PATH" value="E:/log4j2/fire_point" />-->
<property name="FILE_PATH" value="/home/sxy/logs/mengyin_fire" /> <property name="FILE_PATH" value="/home/lcq/logs/mengyin_fire" />
<property name="FILE_NAME" value="fire_point" /> <property name="FILE_NAME" value="fire_point" />
</Properties> </Properties>