|
|
@@ -14,7 +14,7 @@ import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
-import sun.plugin.com.Dispatch;
|
|
|
+
|
|
|
//
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
@@ -136,28 +136,4 @@ public class WebPrintController {
|
|
|
return "操作成功";
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 打印Excel文件
|
|
|
- */
|
|
|
- public void printFileAction(){
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
-
|
|
|
- 判断文件是否存在.
|
|
|
- @param filePath 文件路径
|
|
|
- @return
|
|
|
- */
|
|
|
- private static boolean fileExist(String filePath){
|
|
|
- boolean flag = false;
|
|
|
- try {
|
|
|
- File file = new File(filePath);
|
|
|
- flag = file.exists();
|
|
|
- }catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- return flag;
|
|
|
- }
|
|
|
-
|
|
|
}
|