extremprocess3

//续2
			for(Integer in : exception.keySet()) 
			{
				ArrayList<Date> ds = exception.get(in);
				if(in == 100)
				{
					for(Date d : ds)
					{
						ws[2].addCell(new Label(0,i,String.format("%tF", d),cf));
						ws[2].addCell(new Label(1,i++,"absent",cf));
					}
				}
				else if(ds.size()==1)
				{
					ws[2].addCell(new Label(0,i,String.format(dateFormat, ds.get(0)),cf));
					ws[2].addCell(new Label(1,i,"once only",cf));
					if(ds.get(0).getHours()<12)
					{
						time.setParas(ds.get(0),Const.pm.getTime());
					}
					else
					{
						time.setParas(Const.am.getTime(),ds.get(0));
					}
					ws[2].addCell(new Label(2,i++,time.toString(),cf));
				}
				else
				{	
					ws[2].addCell(new Label(0,i,String.format(dateFormat, ds.get(0)),cf));
					ws[2].addCell(new Label(1,i,String.format(dateFormat, ds.get(1)),cf));
					time.setParas(ds.get(0), ds.get(1));
					ws[2].addCell(new Label(2,i++,time.toString(),cf));
				} 
				
			}
			
			cf = new WritableCellFormat(new WritableFont(WritableFont.ARIAL,10,WritableFont.BOLD));
			cf.setBorder(Border.ALL, BorderLineStyle.DASH_DOT_DOT, Colour.BLUE);
			
			ws[0].addCell(new Label(2,ws[0].getRows(),time.getExtra_weekend_all(),cf));
			ws[1].addCell(new Label(2,ws[1].getRows(),time.getExtra_weekday_all(),cf));
			ws[2].addCell(new Label(2,ws[2].getRows(),time.getLate_time_all(),cf));
			ws[2].addCell(new Label(2,ws[2].getRows(),time.getEarly_time_all(),cf));
			ws[2].addCell(new Label(2,ws[2].getRows(),time.getLateAndEarlyTimeAll(),cf));
			
			wbook.write();  
			wbook.close();  
			book.close();
		}
		catch (IndexOutOfBoundsException e)
		{
			log.error("参数格式错误,请重试!");
			return false;
		}
		catch (FileNotFoundException e) 
		{
			log.error("输入的文件不存在,或目标文件格式错误,请重试!");
			return false;
		}
		catch (Exception e) 
		{
			e.printStackTrace();
			log.error(e);
			return false;
		}
		
		log.info(srcFile+" 's finished.");
		return true;
	}
	
}

 

资源下载链接为: https://pan.quark.cn/s/abbae039bf2a Spring Boot Maven Plugin 是 Spring Boot 框架的重要组成部分,它能够简化 Maven 配置,并为 Spring Boot 应用程序的构建提供诸多辅助功能,尤其在项目打包和运行环节发挥着关键作用。 当项目引入 Spring Boot Maven Plugin 后,执行 Maven 的打包命令(如 mvn package),它会根据项目类型将项目打包成可执行的 JAR 或 WAR 文件。这种打包方式会将所有依赖库一并包含在内,使得项目无需依赖外部类路径环境,仅通过 java -jar 命令即可直接运行。 在项目存在多个启动类的情况下,需要明确指定应用的入口点。如果项目继承了 spring-boot-starter-parent,可以在 pom.xml 文件的 <properties> 标签中设置 <start-class> 属性来指定主类;若项目未继承 spring-boot-starter-parent,则可在 <build><plugins> 部分的 <configuration> 标签内直接配置 <mainClass> 来实现。 插件的 <goal>repackage</goal> 目标用于重新打包应用,将依赖项和应用代码整合到一个独立的可执行文件中。这一过程能有效避免类路径冲突,创建出可以直接运行的 JAR 文件。 此外,Spring Boot Maven Plugin 还支持在打包过程中通过 <resources> 配置排除特定资源文件。同时,借助 <executions> 标签,可以配置插件生成自定义的启动脚本,这对于非 Java 应用在 Windows 或 Unix 系统上的启动非常有用。 使用 <goals>clean</goals> 和
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值