Browse Source

问题修改

xiaochen 2 years ago
parent
commit
819b3aff6d
2 changed files with 2 additions and 26 deletions
  1. 1 1
      build.gradle
  2. 1 25
      src/main/java/com/tld/controller/WebPrintController.java

+ 1 - 1
build.gradle

@@ -41,7 +41,7 @@ dependencies {
 //    implementation 'com.google.zxing:core:3.5.1'
 //    implementation 'com.google.zxing:javase:3.5.1'
     //打印
-    implementation 'com.jacob:jacob:1.10'
+//    implementation 'com.jacob:jacob:1.10'
 
     //excel导入导出
     implementation 'org.apache.poi:poi-ooxml:4.0.0'

+ 1 - 25
src/main/java/com/tld/controller/WebPrintController.java

@@ -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;
-    }
-
 }