| | |
| | | reportName = reportName.replaceAll(" ", "_"); |
| | | |
| | | //模板文件需要加锁 |
| | | synchronized (reportName.intern()){ |
| | | out = getDownLoadFileOutputStream(reportName); |
| | | log.info("reportTemplate:" + fileName); |
| | | synchronized (fileName.intern()){ |
| | | //String templateType = tReportTemplate.getTemplateType(); |
| | | setChageWord(fileName, out, textMap, tReportTemplate.getReportType(),tReportTemplate.getDataPath(), autoTableMap); |
| | | out.flush(); |
| | |
| | | @Configuration |
| | | public class ThreadPoolConfig { |
| | | |
| | | private int corePoolSize = 5; |
| | | private int corePoolSize = 8; |
| | | |
| | | private int maxPoolSize = 20; |
| | | |