修复
This commit is contained in:
parent
49e06769c3
commit
2894649b99
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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;
|
||||||
//实现上传
|
//实现上传
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user