学习笔记
iteye_17205
这个作者很懒,什么都没留下…
展开
-
Excel文件操作(jxl)
操作配置net.sourceforge.jexcelapijxl2.6.101、读取Excel文件public void inputExcel(String filePath) {InputStream is = null;try {is = new FileInputStream(new File(filePath));} catch (FileN...原创 2010-09-26 16:51:19 · 88 阅读 · 0 评论 -
FusionCharts
public String vImage(Model model) { StringBuilder fileXML = new StringBuilder(""); fileXML.append("" + ""); for (int mon = 0; mon < 12; mon++) { int total = visitlogService.sumByTime...原创 2010-12-20 16:48:36 · 87 阅读 · 0 评论 -
JfreeChart使用经验总结
转载于:http://blog.csdn.net/Mr_IT/archive/2005/12/04/543279.aspxjfreechart使用经验总结(针对版本:jfreechart-1.0.0-pre2.zip)问题一:在每次生成 jfreechar图片的时候都会抛出异常,异常指出问题出在ChartFactory.createXYLineChart(picName, "时间轴...原创 2010-12-20 16:52:34 · 147 阅读 · 0 评论 -
Unix下SVN部分操作
下载svn checkout http://ip/项目名/trunk更新svn update测试运行mvn -Dmaven.test.skip=test clean package tomcat:run移动jar文件到maven,以ChartDirector.jar为例mvn install:install-file -Dfile=E:\ChartDirec...原创 2011-03-02 14:22:51 · 190 阅读 · 0 评论 -
ORACLE连接|周、DECODE以及树查询
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=******)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=******)(PORT=1521)))(LOAD_BALANCE=yes)(FAILOVER=ON)(CONNECT_DATA=(SERVER=DEDIC...原创 2012-02-08 09:36:55 · 93 阅读 · 0 评论 -
ORACLE创建用户及导入、导出
默认用户:system/managerscott/tiger--创建空间create tablespace schedule_115 datafile 'D:\oracle\product\10.2.0\oradata\orcl\schedule_115.dbf' size 50M default storage (initial 500K Next 500K minext...原创 2012-02-08 09:54:39 · 124 阅读 · 0 评论 -
查看SISSON
select * from v$locked_objectselect * from all_objects where object_id=原创 2012-02-08 09:57:46 · 164 阅读 · 0 评论 -
openlayers+google
1.先下载openlayers(http://openlayers.org/download/);2.复制img目录、lib目录、theme目录至项目;3.开发一个简单实例 jsp页面: ${sessionScope.title} .olLayerGoogleCopyright{marg...原创 2012-04-06 10:06:40 · 181 阅读 · 0 评论 -
marker显示(openlayers+google)
function initMap(type) { var lon = centerPoint.split(',')[0]; var lat = centerPoint.split(',')[1]; var point = new OpenLayers.LonLat(lon,lat) .transform(new OpenLayers.Projection("EPSG:4326")...原创 2012-04-06 10:15:01 · 191 阅读 · 0 评论 -
按时间为jfreechart数据源
public String getDataSet( @PathVariable int type, @RequestParam(value = "stratdate", required = false) Date stratdate, @RequestParam(value = "enddate", required = false) Date enddate, ...原创 2010-12-20 16:30:09 · 106 阅读 · 0 评论 -
JFreeChart改变图片的保存路径
继承ServletUtilities,若生成的图片格式为jpg,则重写saveChartAsJPEG方法public static String saveChartAsJPEG(JFreeChart chart, int width, int height, HttpSession session) throws IOException { if (chart == null...2010-12-20 16:21:55 · 292 阅读 · 0 评论 -
JFreeChart生成图片到服务器指定目录
//曲线图public String imageLine(TimeSeries chinaTs,HttpSession session) { String title = "访问量统计"; String domain = ""; String range = "访问量"; TimeSeriesCollection dataset = new TimeSeriesColl...2010-12-20 16:09:25 · 350 阅读 · 0 评论 -
安装maven
maven环境变量JAVA_HOME:D:\Java\jdk1.6.0_10MAVEN_HOME:D:\Java\apache-maven-2.2.1PATH:%MAVEN_HOME%\bin测试maven是否安装成功在命令行输入 mvn –version在Eclipse中配置选择java->Build Path->Classpath Variables增加...原创 2010-09-26 17:22:34 · 78 阅读 · 0 评论 -
ibatis的批量存储
public void saveItemBatch(final List itemList, final Long catalogId) { this.getSqlMapClientTemplate().execute(new SqlMapClientCallback() { public Object doInSqlMapClient(SqlMapExecutor executor...原创 2010-09-26 17:30:37 · 133 阅读 · 0 评论 -
freemarker遍历map
${book.isbn?default("")} ${book.ti...原创 2010-09-26 17:36:30 · 125 阅读 · 0 评论 -
ibatis 的like查询
name like '%$name$%' 会有注入漏洞name like '%' || #name# || '%'$生成文本化的sql#生成参数化的sqlmysql: select * from tb where name like concat('%',#name#,'%') oracle: select * from tb where name like '%'||...原创 2010-09-28 13:21:51 · 113 阅读 · 0 评论 -
freemarker 三种将科学计数法转化为阿拉伯数字格式的方法
freemarker默认显示是科学计数法1:加c,如${mail.id?c}2.加3.在freemarker.properties中设置number_format=#原创 2010-10-20 12:40:20 · 904 阅读 · 0 评论 -
java遍历map
Map bookMap = new HashMap();List loglist = new ArrayList();loglist = logService.sumGroupByLibrary(libraryId, offset, limit);int index = 0;for (HashMap map : loglist) {Map data = new HashMap(...原创 2010-11-09 17:17:45 · 119 阅读 · 0 评论 -
从互联网保存图片到本地
public byte[] saveImage(String filePath) { FileOutputStream fos = null; BufferedInputStream bis = null; HttpURLConnection httpUrl = null; byte[] buf = new byte[2048]; int size = 0; t...原创 2010-11-25 15:33:05 · 112 阅读 · 0 评论 -
从互联网(路径)将图片转化为byte数组
public byte[] getBytes(String filePath) { try { InputStream in = null; DataInputStream dis = null; HttpURLConnection connection = null; URL server = new URL(filePath); connectio...原创 2010-11-25 15:42:00 · 596 阅读 · 0 评论 -
OpenLayers部分方法事件
一、设置中心坐标map.setCenter(point, zoom);二、删除标记markers.removeMarker(marker);三、移动标记marker.moveTo(map.getLayerPxFromViewPortPx(e.xy));四。获取中心坐标map.getCenter();五、获取扩大倍数map.getZoom();六、地图添加单击...原创 2012-04-06 10:30:00 · 444 阅读 · 0 评论