|
@@ -12,6 +12,7 @@ import org.apache.poi.ss.usermodel.Workbook;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.context.annotation.Scope;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.io.FileInputStream;
|
|
@@ -25,6 +26,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|
|
*/
|
|
|
@Slf4j
|
|
|
@Component
|
|
|
+@Scope("prototype")
|
|
|
public abstract class AbstractResolverExcelTemplate {
|
|
|
|
|
|
@Value("${files.path}")
|
|
@@ -118,6 +120,7 @@ public abstract class AbstractResolverExcelTemplate {
|
|
|
os.close();
|
|
|
record.setFailFilePath(FailFilePath);
|
|
|
}catch (Exception e){
|
|
|
+ log.error("failFile error = {} {}" , e.getMessage(), JSON.toJSON(e));
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|