![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
技术
文章平均质量分 69
xu19881229
程序员
展开
-
导出直接输出流下载功能(带弹出框)
try { //根据系统时间得到文件名 String filename = String.valueOf(System.currentTimeMillis()).concat(".xls" ); // 设置下载时客户端Excel的名称 response.setContentType("application/vnd.ms-excel" ); response.setHeader原创 2014-12-19 13:58:28 · 398 阅读 · 0 评论 -
java数字大写转换小程序
//数字转换成大写并返回 public static String changeToBig( double value){ char[] hunit = { '拾', '佰', '仟' }; // 段内位置表示 char[] vunit = { '万', '亿' }; // 段名表示 char[] di转载 2014-12-19 14:01:00 · 353 阅读 · 0 评论 -
java去除周末计算天数
/** * 结束时间减去开始时间除去周末的天数 * @param strStartDate * @param strEndDate * @return 天数 */ public static int getDutyDays(String strStartDate,String strEndDate) { Simpl转载 2014-12-19 13:56:19 · 1160 阅读 · 0 评论 -
java处理图片公共方法
/** * 处理图片 处理图片公共方法 * @param img * @param poster * @throws Exception */ public String posterImg( byte[] img, String type) throws Exception原创 2014-12-19 14:13:40 · 347 阅读 · 0 评论