增加打印日志
This commit is contained in:
parent
e9e5f68e41
commit
280747ad91
|
|
@ -1,10 +1,12 @@
|
|||
package cn.hangtag.module.oms.common.utils;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
@Slf4j
|
||||
public class HtmlToPdfInterceptor extends Thread {
|
||||
private InputStream is;
|
||||
|
||||
|
|
@ -13,16 +15,19 @@ public class HtmlToPdfInterceptor extends Thread {
|
|||
}
|
||||
|
||||
public void run() {
|
||||
log.error("==============================1");
|
||||
try {
|
||||
InputStreamReader isr = new InputStreamReader(is, "utf-8");
|
||||
BufferedReader br = new BufferedReader(isr);
|
||||
String line = null;
|
||||
while ((line = br.readLine()) != null) {
|
||||
log.error(line.toString());
|
||||
// System.out.println(line.toString()); // 输出内容
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
log.error("==============================2");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue