zscomehuyue
zscomehuyue · 共 372 篇文章
db2常用命令大全
在翻阅论坛的帖子时,发现很多同学苦于手边没有一些“小贴士”,所以不得不放下手里的活去查资料,结果查出结果了,刚才文思隽永的思路也没了。现在分类整理出一些小技巧,希望可以帮助需要帮助的人。那就先从DB2开始吧。 1. 查看本地节点目录 命令窗口中输入:db2 list node directory 2. 编目一个TCP/IP节点 命令窗口:db2 catalog tcpip node remote server ostype 3. 取消节点编目 db2 uncatalog node 4. 查看系统数据库目录 db2 list database directory 5. 查看本地数据库目录 db…
2010-09-20 10:11 · 评论(0) · SQL Server · DB2 · 数据结构 · XP · IBM
db2常用命令大全
1、Load 方法装入数据: export to tempfile of del select * from TABLENAME where not 清理条件; load from tempfile of del modified by delprioritychar replace into TABLENAME nonrecoverable; 说明: 在不相关的数据表export数据时,可以采取并发的形式,以提高效率; TABLEN…
2010-09-20 10:06 · 评论(0) · DB2 · 活动
解析pdf文件
http://pdfbox.apache.org/userguide/text_extraction.html
2010-09-16 15:17 · 评论(0) · HTML · Apache
在应用中,需要热切换数据源。但发现如下问题:
在应用中,需要热切换数据源。但发现如下问题: 错误 Java代码 1. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'swappable' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is null 2. java.lang.IllegalArgumentException:…
2010-09-14 17:30 · 评论(0) · 应用服务器 · Java · XML · Hibernate · Bean
Spring2.5注解实现AOP(使用简单的例子进行介绍) 收藏
Spring2.5注解实现AOP(使用简单的例子进行介绍) 收藏 这个例子非常的简单,下面是实体类 view plaincopy to clipboardprint? 1. package test; 2. 3. /** 4. * 5. * @author neu_20063500 6. * 7. */ 8. public class HelloWorld { 9. 10. public void sayHello(String helloworld) { 11. System.out.println(helloworld); 12. throw new RuntimeException()…
2010-09-14 14:56 · 评论(0) · DAO · Spring · AOP · Web · Bean
Spring2.5 注解 Aspect AOP (转)
Spring2.5 注解 Aspect AOP (转) JAVA 2009-04-07 20:57:34 阅读965 评论0 字号:大中小 订阅 在低版本Spring中定义一个切面是比较麻烦的,需要实现特定的接口,并进行一些较为复杂的配置,低版本Spring AOP的配置是被批评最多的地方。Spring听取这方面的批评声音,并下决心彻底改变这一现状。在Spring2.0中,Spring AOP已经焕然一新,你可以使用@AspectJ注解非常容易的定义一个切面,不需要实现任何的接口。 Spring2.0采用 @AspectJ注解对POJO进行标注,从而定义一个包含切点信息和增强横切逻辑的切面,…
2010-09-14 14:45 · 评论(0) · DAO · Spring · AOP · JDK · Bean
Spring 2.0 AOP编程 方法拦截机 MethodInterceptor Demo
Spring 2.0 AOP编程 方法拦截机 MethodInterceptor Demo 2009-09-08 09:51 转帖:http://www.ziki.cn/blog/archives/1167792771.html Spring 2.0 AOP编程 方法拦截机 1)书写方法拦截机 实现 org.aopalliance.intercept.MethodInterceptor 例如MethodInterceptorDemo.java package dao.impl; import org.aopalliance.intercept.MethodInterceptor; impor…
2010-09-14 14:43 · 评论(0) · Java · DAO · Spring · AOP · 编程
在仅使用ibatis时,多数据源简直就是梦魇,每多一个数据源就需要多一份sql-map-config配置文件。
在仅使用ibatis时,多数据源简直就是梦魇,每多一个数据源就需要多一份sql-map-config配置文件。 采用spring的AbstractRoutingDataSource就可以简单的解决这个问题。 AbstractRoutingDataSource实现了javax.sql.DataSource接口,因此可以理解为一个虚拟的动态DataSource,在需要的时候根据上下文Context动态决定使用哪个数据源。 Spring+iBatis多数据源的配置 下面是一个完整的配置: 其核心是DynamicDataSource,代码如下 public class DynamicDataSour…
2010-09-14 10:41 · 评论(0) · Spring · SQL · XML · iBATIS · 多线程
iBatis多数据源的苦恼
iBatis多数据源的苦恼 在仅使用ibatis时,多数据源简直就是梦魇,每多一个数据源就需要多一份sql-map-config配置文件。 采用spring的AbstractRoutingDataSource就可以简单的解决这个问题。 AbstractRoutingDataSource实现了javax.sql.DataSource接口,因此可以理解为一个虚拟的动态DataSource,在需要的时候根据上下文Context动态决定使用哪个数据源。 Spring+iBatis多数据源的配置 下面是一个完整的配置: < beans xmlns="http://www.springframework…
2010-09-14 10:36 · 评论(0) · Spring · AOP · iBATIS · Bean · 多线程
jquery demo效果
http://jqueryui.com/demos/dialog/#modal-confirmation
2010-09-10 18:52 · 评论(0) · jQuery
Jquery表单取值赋值的一些基本操作
Jquery表单取值赋值的一些基本操作 Jquery表单取值赋值的一些基本操作 Java代码 / 获得TEXT.AREATEXT的值 / var textval = $(”#text_id”).attr(”value”); //或者 var textval = $(”#text_id”).val(); / 获取单选按钮的值 / var valradio = $(”input[@type=radio][@checked]“).val(); / 获取一组名为(items)的radio被选中项的值 / var item = $(’input[@name=items][@checked]‘).val…
2010-09-09 14:17 · 评论(0) · jQuery