摘要: 缺省情况下,安装 DB2® 数据库产品或功能部件时仅应用基本许可证密钥。可使用db2licm命令来应用许可证权利证书(又称为注册许可证密钥)。开始前要完成此任务,必须具有适当的许可证文件(*.lic)。请参阅DB2 许可证文件。在 Windows 操作系统上,必须属于本地 Administrators 或 Power Users 组才能将db2licm命令与-a命令参数配合使用。过程在 Windows 操作系统上,如果您是本地管理员的成员,那么可通过输入下列命令来注册 DB2 许可证密钥: db2instance_path\bin\db2licm -a filename 其中db2i 阅读全文
posted @ 2014-03-26 12:36 ㊣执着㊣ 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 2013-11-05 15:25:421首先在applicationContext.xml中引入1 6 --> 2打开定时器开关不使用注解时, -->3编写任务实例使用注解时在类头部添加@Component 方法头部添加@Scheduledpackage com.test.task;import java.text.SimpleDateFormat;import java.util.Date;import org.springframework.scheduling.annota... 阅读全文
posted @ 2013-11-05 15:28 ㊣执着㊣ 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 官方文档 :http://www.mchange.com/projects/c3p0/index.html3301000falseTestfalse100nullfalse60360151003rootpasswordselect id from test where id=1300falsetruerootfalsecon_test3000030103025100200300转:http://www.wujianrong.com/archives/2007/08/c3p0.html解决MYSQL 8小时问题最近的一个项目在Hibernate使用C3P0的连接池,数据库为Mysql。开发测试没 阅读全文
posted @ 2013-07-18 14:02 ㊣执着㊣ 阅读(207) 评论(0) 推荐(0) 编辑
摘要: com.mysql.jdbc.Driver jdbc:mysql://localhost/hibernate root 123456 20 true 50 23 false true gbk org.hibernate.dialect.MySQLDialect //连接驱动 //连接url, //连接用户... 阅读全文
posted @ 2013-07-15 17:51 ㊣执着㊣ 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 面板 阅读全文
posted @ 2013-07-14 16:32 ㊣执着㊣ 阅读(169) 评论(0) 推荐(0) 编辑
摘要: package test;import javax.swing.JOptionPane;public class HanNuoTa { private static final String DISK_B = "diskB"; private static final String DISK_A = "diskA"; private static final String DISK_C = "diskC"; static String from = DISK_A; static String to = DISK_C; static S 阅读全文
posted @ 2013-06-21 20:42 ㊣执着㊣ 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 在工程中导入spring支持,导入jar包在spring配置文件中配置dataSource和SessionFactory,将hibernate配置与Spring配置整合在一起(可以删除hibernate.cfg.xml文件);导入数据库源所要使用的Jar包修改所有DAO的hibernate实现,因为Spring中提供了一个HibernateDAOSupport类,可以简化数据库的操作。使用所有DAO类都继承自该类将DAO采用依赖注入的方式注入到Biz中,再将Biz采用依赖注入的方式注入到Action中,在Spring配置文件中做相应配置在web.xml文件中配置监听器以及web应用的初始化参数 阅读全文
posted @ 2013-06-21 20:39 ㊣执着㊣ 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 一 setter方法注入配置文件如下:<bean id="helloAction" class="org.yoo.action.SpringSetterHelloAction"> <!-- setter injection using the nested <ref/> element --> <property name="helloservice"><ref bean="helloService"/></property> <!--可 阅读全文
posted @ 2013-06-21 20:37 ㊣执着㊣ 阅读(487) 评论(0) 推荐(0) 编辑
摘要: //读文件public static String read(String fileName) throws IOException {StringBuffer buffer = new StringBuffer();BufferedReader in = new BufferedReader(new FileReader(fileName));String s;while( (s = in.readLine()) != null){buffer.append(s);buffer.append("\n");}in.close();return buffer.toString 阅读全文
posted @ 2013-06-20 23:03 ㊣执着㊣ 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 原理:1.通过Configuration().configure();读取并解析hibernate.cfg.xml配置文件2.由hibernate.cfg.xml中的<mapping resource="com/xx/User.hbm.xml"/>读取并解析映射信息3.通过config.buildSessionFactory();//创建SessionFactory4.sessionFactory.openSession();//打开Sesssion5.session.beginTransaction();//创建事务Transation6.persistent 阅读全文
posted @ 2013-05-04 21:53 ㊣执着㊣ 阅读(159) 评论(0) 推荐(0) 编辑