This commit is contained in:
xiangwb
2017-11-20 15:35:21 +08:00
parent 91350a2274
commit 472ccea7ee
5 changed files with 26 additions and 34 deletions
@@ -18,7 +18,6 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.util.List;
/**
@@ -95,16 +94,4 @@ public class TestControl {
RestMessage restMessage = qrCodeZipService.batchGetImage(response, names, fileName);
return JSONObjResult.toJSONObj(restMessage);
}
@GetMapping("test")
public JSONObject test() throws IOException {
RestMessage restMessage = new RestMessage();
String path = qrCodeZipService.getPath();
File file = new File(path + File.separator + "demo.txt");//创建文件对象,并不创建文件
if (!file.exists()) {
file.createNewFile(); //创建文件
}
return JSONObjResult.toJSONObj(restMessage);
}
}