摘要: 景:ireport 画excel 报表,导出时要求 数据分页,每页包含 标题和页脚 1.画excel 2.处理分页 首先建立一个变量totalNum 用于记录总共有多少条记录,注意设置属性为Integer类型,计算方法为count,变量表达式为new Integer(1) 再插入一个break 分隔 阅读全文
posted @ 2017-08-24 20:23 pabitel 阅读(1344) 评论(0) 推荐(0) 编辑
摘要: 1.在一般函数方法中使用 this 指代全局对象 2.作为对象方法调用,this 指代上级对象 3.作为构造函数调用,this 指代new 出的对象 4.apply 调用 ,apply方法作用是改变函数的调用对象,此方法的第一个参数为改变后调用这个函数的对象,this指代第一个参数 阅读全文
posted @ 2016-09-30 01:39 pabitel 阅读(112865) 评论(3) 推荐(3) 编辑
摘要: 百度出来的博客文章,配置curl.cmd 的内容win7 x64 好像有误 贴下正确的 参考文章:https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows 阅读全文
posted @ 2016-08-06 17:17 pabitel 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 参考文章:http://tutorialforlinux.com/2016/03/09/how-to-install-oracle-11g-r2-database-on-ubuntu-14-04-trusty-lts-64bit-easy-guide-managing-db-troubleshoot 阅读全文
posted @ 2016-05-15 17:18 pabitel 阅读(6569) 评论(0) 推荐(0) 编辑
摘要: mysql在ubuntu的终端下出现中文乱码的问题:先学着在不改数据库的情况下对my.cnf配置文件进行修改,主要的是设置default-character-set=utf8但是设置完后数据库重启出现问题:/etc/init.d/mysql/ restart终端显示无法加载socket:/var/r... 阅读全文
posted @ 2015-12-13 02:37 pabitel 阅读(208) 评论(0) 推荐(0) 编辑
摘要: satement 用于写入数据,例子如下:connection conn=DBHelper.getConnection();Statement stmt=conn.createStatement();String sql=select * from table_name;stmt.excute(sq... 阅读全文
posted @ 2015-12-07 23:49 pabitel 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 1.properties 配置文件driver=com.mysql.jdbc.Driver#urlurl=jdbc:mysql://localhost:3306/pabitel#useruser=root#passwordpassword=4936566962.建一个用来获取连接的类 1 publi... 阅读全文
posted @ 2015-12-07 23:18 pabitel 阅读(1407) 评论(0) 推荐(0) 编辑