
其它
文章平均质量分 65
ycwu3
这个作者很懒,什么都没留下…
展开
-
jxl 相关总结
注:一实际项目,在导出数据到Excel 中时,要求加载已存在的模板文件,模板文件中设定了Excel的相关格式,而且包含首封面。现将相关代码记录如下,方便查阅。 一、JXL API http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/ 二、相关代码String path = getCla...原创 2011-07-22 13:10:22 · 149 阅读 · 0 评论 -
使用ffmpeg 视频格式转换&&截图
一、官网:http://ffmpeg.org/index.html二、代码:1、工具类package wuyechun.myweb.test;import java.io.File;import java.util.HashMap;/* * @(#) ConvertVideo.java 1.0 2011-7-7 * * (c) Copyright 2...原创 2011-07-22 15:52:05 · 179 阅读 · 0 评论 -
使用jxl读取excel内容,并转换成Json,用于Datagrid
一、上传excel文件,得到InputStream,由InputStream得到Jxl中的Workbook,取出内容,存到二维数组中。 1、使用 Jquery Uploadify 插件(http://www.uploadify.com/ ),得到FileItem,由FileItem得到InputStream。 String[][] excelContent = getExcelC...原创 2011-07-22 17:11:09 · 175 阅读 · 0 评论 -
jsp-log4j 日志 简单用法笔记
1、从官方网站下载 jakarta-log4j-1.2.1.tar.gz http://logging.apache.org/log4j/1.2/download.html2、在eclipse中将log4j-1.2.1.jar复制到WebContent/WEB-INF/lib 下3、在src下新建File,命名为 log4j.properties(不要改动)4、在log4j.pr...原创 2011-07-23 12:51:52 · 170 阅读 · 0 评论 -
端口配置
1、配置jetty端口jetty:run -Djetty.port=80812、配置tomcat端口tomcat 安装目录下 conf 下 server.xml文件<Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPo...原创 2011-07-25 09:08:27 · 154 阅读 · 0 评论 -
权限控制 Shiro采用JdbcRealm(JNDI)
1.在web.xml中添加过滤器 <filter> <filter-name>ShiroFilter</filter-name> <filter-class>org.apache.shiro.web.servlet.IniShiroFilter</filter-class> </filter>...原创 2012-12-11 13:51:48 · 361 阅读 · 0 评论 -
Ehcache timeToIdleSeconds和 timeToLiveSeconds区别
一直不理解ehcache中 timeToIdleSeconds和 timeToLiveSeconds 这两个配置的区别,特意找到官方文档看了一下,基本理解了它的意思。首先看一段原文:What is the difference between TTL, TTI, and eternal?These are three cache attributes that can be ...原创 2012-12-18 09:35:10 · 373 阅读 · 0 评论