
学习笔记
iteye_17205
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Excel文件操作(jxl)
操作配置 net.sourceforge.jexcelapi jxl 2.6.10 1、读取Excel文件 public void inputExcel(String filePath) { InputStream is = null; try { is = new FileInputStream(new File(filePath)); } catch (FileN...原创 2010-09-26 16:51:19 · 98 阅读 · 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 · 101 阅读 · 0 评论 -
JfreeChart使用经验总结
转载于:http://blog.youkuaiyun.com/Mr_IT/archive/2005/12/04/543279.aspx jfreechart使用经验总结(针对版本:jfreechart-1.0.0-pre2.zip) 问题一:在每次生成 jfreechar图片的时候都会抛出异常,异常指出问题出在ChartFactory.createXYLineChart(picName, "时间轴...原创 2010-12-20 16:52:34 · 167 阅读 · 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 · 213 阅读 · 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 · 109 阅读 · 0 评论 -
ORACLE创建用户及导入、导出
默认用户: system/manager scott/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 · 148 阅读 · 0 评论 -
查看SISSON
select * from v$locked_object select * from all_objects where object_id=原创 2012-02-08 09:57:46 · 184 阅读 · 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 · 201 阅读 · 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 · 217 阅读 · 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 · 125 阅读 · 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 · 319 阅读 · 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 · 375 阅读 · 0 评论 -
安装maven
maven环境变量 JAVA_HOME:D:\Java\jdk1.6.0_10 MAVEN_HOME:D:\Java\apache-maven-2.2.1 PATH:%MAVEN_HOME%\bin 测试maven是否安装成功 在命令行输入 mvn –version 在Eclipse中配置 选择java->Build Path->Classpath Variables 增加...原创 2010-09-26 17:22:34 · 90 阅读 · 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 · 149 阅读 · 0 评论 -
freemarker遍历map
${book.isbn?default("")} ${book.ti...原创 2010-09-26 17:36:30 · 146 阅读 · 0 评论 -
ibatis 的like查询
name like '%$name$%' 会有注入漏洞 name like '%' || #name# || '%' $生成文本化的sql #生成参数化的sql mysql: select * from tb where name like concat('%',#name#,'%') oracle: select * from tb where name like '%'||...原创 2010-09-28 13:21:51 · 126 阅读 · 0 评论 -
freemarker 三种将科学计数法转化为阿拉伯数字格式的方法
freemarker默认显示是科学计数法 1:加c,如${mail.id?c} 2.加 3.在freemarker.properties中设置number_format=#原创 2010-10-20 12:40:20 · 942 阅读 · 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 · 140 阅读 · 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 · 138 阅读 · 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 · 621 阅读 · 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 · 468 阅读 · 0 评论