- 博客(21)
- 收藏
- 关注
原创 linux 下 改mysql端口
<br />把之前3306的端口:换成:33<br /> <br /> <br /> vi /etc/my.cnf<br />port = 3306 #修改为你想要改的端口<br /> <br />[mysqld]<br />port = 33<br /> <br />[client]<br />port = 33<br /> <br />然后运行 service mysql restart 重启mysql就行了<br /> <br />默认情况下:etc目录下是没有my.cnf文件的,需要从别的地方cop
2011-03-10 10:44:00
513
原创 子表报和主报表的格式对不齐
选中左边报表名称,在报表右边属性中把上左右边界 left margin ,right margin ,top,button margin 中把值设置为0就行了
2010-12-27 15:16:00
677
原创 jasperreport 使用子报表(使用JavaBean集合作为数据源)
程序部分 第一步,创建与之相关的Bean类,如下所示:ProvinceBean.javapackage lld.test.ireport;import java.util.ArrayList;public class ProvinceBean{ private String provinceName; private ArrayList cities; public String getProvinceName() { return provinceName; } public void setProvi
2010-12-24 16:43:00
6142
原创 图片显示不出来
抛错:com.lowagie.text.Image.plainWidth()F 解决方案:1.导入itext-1.3.1.jar 2. itext.jar还是要保留。
2010-12-24 15:38:00
771
原创 linx 下安装mysql ,tomcat,部署工程
今天下午突然之前一直在使用的机器down掉了,无奈之下只得把工程换到另一台机器上。呵呵,之前自己还没有完完整整配过一个工程的环境噢,在这小愧一下。于是乎自己就动手弄了起来。下面把步骤一一道来:先把需要用到的包从别的机器上给copy 过来下面是所需要的包:apache-tomcat-5.5.20.tar.gz MySQL-client-5.1.24-0.glibc23.x86_64.rpm perl-DBI-1.40-8.x86_64.rpmjre-1_5_0_15-linux-i586.bin MyS
2010-06-24 16:22:00
893
原创 mysql event
<br />打开database :Shining Friends --->table:GLOBAL_VARIABLES-->找到:EVENT_SCHEDULER <br /> <br />当EVENT_SCHEDULER =OFF的时候,<br />运行下面的命令,把它启动<br />SET GLOBAL event_scheduler = ON;<br />之前我在mysqlFront 工具里边运行此命令,说我没有权限,后来百度未果,直接跑到linux--mysql下。运行此运命令,结果运行o
2010-06-24 15:39:00
265
原创 从内存中读内容
第一次读库写入内存。以后从内存读。提高效率public class SourcePool { private static volatile SourcePool pool; public TransUser user = new TransUser(); private SourcePool(){} public void init(){ TransUserDao tuDao =
2010-05-27 16:44:00
487
原创 mysql event调用存储过程
mysql event (用来实现定时任务)。mysql 从 5.1.16 开始拥有的新功能。 下面我写一个简单的示例。 先创建数据库和两个表: drop database dep;create database dep; use dep;create table aa(id int AUTO_INCREMENT primary key,remark varchar(20)
2010-01-14 16:01:00
1266
原创 linux下创建mysql用户密码
本地 grant all privileges on lazycdn.* to iamcdn@"localhost" identified by "cdnisme@!$#"; 公网: grant all privileges on lazycdn.* to iamcdn@"%" identified by "cdnisme@!$#";
2009-11-24 11:12:00
424
原创 对list中的对象进行排序
public class Test1 { public static void main(String[] args) { Student s1 = new Student("www.dnion.com"); Student s2 = new Student("customer.dnion.com"); Student s3 = ne
2009-07-28 17:02:00
626
原创 读取配置文件
public class DycacheMake { public String getProperties(){ String s_config="config.properties"; Properties p = new Properties(); URL url; DycacheMake make = new DycacheMake(); ClassLoader
2009-02-20 15:27:00
323
原创 创建一级目录,多级目录
一级目录: File file = new File("c://aa");file.mkdir();多级目录:1.File file = new File("c:/aaa/bbb/ccc"); file.mkdirs(); 2.public void makedir(){String path="c:/aaa/bbb/ccc"; StringT
2009-02-20 15:23:00
1358
原创 上下移动的层
滚动图#floater {position: absolute;left: 500;top: 146;width: 176;visibility: visible;z-index: 10;}-->http://g1a111.mail.163.com/netfolder/servlet/nfapp/GetFile?sid=UCMwLfnnAoGmrwAJCunnRZHlYrrWAFrS&mi
2009-02-09 15:08:00
343
原创 层隐藏
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">无标题文档function get(){ if(document.form1[0].checked==true){ var obj1=document.getElementById("text1"); obj
2009-02-09 15:04:00
513
原创 给数据库赋予权限
grant all privileges on easywork.* to iamcdn@"%" identified by "cdnisme@!$#";
2009-01-15 14:56:00
538
原创 jdbc+proxool
要注意的是如果是src下的proxool,hibernate .cfg.xml中用到了也不需要在web.xml中配置了 package cache.task.connection;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLEx
2009-01-06 10:53:00
1354
原创 HttpClient远程发送文件
应用程序部分:注意:要载入commons-httpclient-3.1.jar commons-codec.jar commons-logging.jar这三个包import java.io.File;import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.HttpStat
2009-01-06 10:49:00
2385
1
原创 Thread
package zk;public class MyThread implements Runnable { int count = 1, number; public MyThread(int num) { number = num; System.out.println("创建线程 " + number); } public void run() { while (true)
2009-01-06 10:39:00
477
原创 获得目录下的所有文件
package zk;import java.io.File;import java.io.IOException;import java.util.ArrayList;import java.util.List;public class FileTest { private int aa=0; public static void main(String[] args) throws IO
2008-12-22 14:34:00
251
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人