From 191378ca0b89c01a1da8570464b8d3ae1a34c834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E8=B6=85?= Date: Sun, 12 Apr 2020 21:38:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/mac/scp/controller/FileController.java | 2 +- file-web/src/main/resources/application.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/file-web/src/main/java/com/mac/scp/controller/FileController.java b/file-web/src/main/java/com/mac/scp/controller/FileController.java index 402bccd..60bc678 100644 --- a/file-web/src/main/java/com/mac/scp/controller/FileController.java +++ b/file-web/src/main/java/com/mac/scp/controller/FileController.java @@ -109,7 +109,7 @@ public class FileController { List fileList = JSON.parseArray(fileBean.getFiles(), FileBean.class); for (FileBean file : fileList) { - fileService.deleteFile(fileBean); + fileService.deleteFile(file); } result.setData("批量删除文件成功"); diff --git a/file-web/src/main/resources/application.properties b/file-web/src/main/resources/application.properties index 17b83d2..62b72d0 100644 --- a/file-web/src/main/resources/application.properties +++ b/file-web/src/main/resources/application.properties @@ -22,7 +22,7 @@ mybatis.mapper-locations=classpath:mybatis/mapper/*.xml spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver spring.datasource.url = jdbc:mysql://localhost:3306/file?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8 spring.datasource.username=root -spring.datasource.password=ma123456 +spring.datasource.password=password123 #数据库初始化 spring.datasource.data=classpath:database/data.sql