- 博客(15)
- 资源 (17)
- 收藏
- 关注
转载 Situations Where SQLite Works Well
Appropriate Uses For SQLiteSQLite is different from most other SQL database engines in that its primary design goal is to be simple: Simple to administer Simple to operate Simple to embed in
2008-08-04 17:44:00 476
转载 Java路径问题最终解决方案—可定位所有资源的相对路径寻址[转]
Java路径问题最终解决方案—可定位所有资源的相对路径寻址[转]前言Java的路径问题,非常难搞。最近的工作涉及到创建和读取文件的工作,这里我就给大家彻底得解决Java路径问题。我编写了一个方法,比ClassLoader.getResource(String 相对路径)方法的能力更强。它可以接受“../”这样的参数,允许我们用相对路径来定位classpath外面的资源。这样,我们就可以
2008-07-21 09:55:00 443
转载 DOM4j
import org.dom4j.Document; import java.util.List; import java.util.Iterator; import org.dom4j.Element; import org.dom4j.Attribute; import org.dom4j.io.SAXReader; import java.io
2008-07-21 09:33:00 529
转载 IBATIS
Apache WicketIBATISComment: Added in the link to the Spring framework DAO documentation for iBATIS, cleaned grammar a bit more.View page history var show = document.getElementById(sho
2008-07-09 13:30:00 821
转载 Oracle体系结构需要了解的两个概念
Oracle体系结构需要了解的两个概念 要了解oracle体系结构必须先了解两个基本的概念: 数据库和实例。 一 数据库 数据库(database)是一个数据集合。 无论数据库是采用关系结构还是面向对象结构, oracle数据库都将 其数据存放在数据文件中。 在其内部, 数据库结
2008-07-08 17:27:00 358
原创 让spring 同时加载类路径和当前路径中的文件
ApplicationContext ctx = null; String[] configs={"classpath:bean/biz-datasource.xml","classpath:bean/biz-dao.xml","src/conf.test/bean/biz-ao.xml"}; ctx = new FileSystemXmlApplicationContex
2008-06-18 18:13:00 708
转载 [ibatis]动态映射
在复杂查询过程中,我们常常需要根据用户的选择决定查询条件,这里发生变化的并不只是SQL 中的参数,包括Select 语句中所包括的字段和限定条件,都可能发生变化。典型情况,如在一个复杂的组合查询页面,我们必须根据用户的选择和输入决定查询的条件组合。一个典型的页面如下:对于这个组合查询页面,根据用户选择填写的内容,我们应为其生成不同的查询语句。如用户没有填写任何信息即提交查询请求,我们应
2008-05-28 13:27:00 398
转载 利用 Ant 和 JUnit 进行增量开发
软件开发习惯中一个细微更改都可能会对软件质量产生巨大改进。将单元测试合并到开发过程中,然后从长远角度来看它可以节省多少时间和精力。本文通过使用代码样本说明了单元测试的种种好处,特别是使用 Ant 和 JUnit 带来的各种方便。测试是大型开发过程中的基本原则之一。在任何职业中,验证都是一个重要部分。医生要通过验血来确诊。波音公司在研制 777 的过程中对飞机的每个组件都进行了精心测试。为什么软
2008-05-27 17:15:00 360
原创 利用 Ant 和 JUnit 进行增量开发
软件开发习惯中一个细微更改都可能会对软件质量产生巨大改进。将单元测试合并到开发过程中,然后从长远角度来看它可以节省多少时间和精力。本文通过使用代码样本说明了单元测试的种种好处,特别是使用 Ant 和 JUnit 带来的各种方便。测试是大型开发过程中的基本原则之一。在任何职业中,验证都是一个重要部分。医生要通过验血来确诊。波音公司在研制 777 的过程中对飞机的每个组件都进行了精心测试。为什么软件开
2008-05-27 17:14:00 361
原创 JAVA格式化日期
Date dd = new Date(); //String zipName = dd.toLocaleString(); //得到一个中文的日期格式 SimpleDateFormat ss = new SimpleDateFormat("yyyy年MM月dd日kk时mm分ss秒");//其中yyyy-MM-dd是你要表示的格式 String zipName = ss.format(dd);
2008-05-27 14:19:00 422
原创 收集的一些正则表达式
1、非负整数:^/d+$ 2、正整数:^[0-9]*[1-9][0-9]*$ 3、非正整数:^((-/d+)|(0+))$ 4、负整数:^-[0-9]*[1-9][0-9]*$ 5、整数:^-?/d+$ 6、非负浮点数:^/d+(/./d+)?$ 7、正浮点数:^((0-9)+/.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*/.[0-9]+)|([0-9]*[1-9]
2008-05-27 14:15:00 498
原创 避免表单重复提交(js实现)
script language="javascript"> function submitForm(obj){ obj.disabled=true; document.form1.submit(); } script> BODY>
2008-05-27 14:13:00 412
原创 DWR实现级联
dwr2.0 web.xml配置: dwr-invoker org.directwebremoting.servlet.DwrServlet debug true classes java.lang.Object 100 dwr-invoker /dwr/* 操作类 public class DwrTest { @SuppressWarnings("unchecked") pub
2008-05-27 14:12:00 476
原创 ByteBuffer读取文件乱码
public class NioTest { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { FileChannel fc = new FileInputStream("src/com/test/IOTest.java")
2008-05-26 21:06:00 3195
转载 MyEclipse快捷键与插件大全
(1)Ctrl+M切换窗口的大小(2)Ctrl+Q跳到最后一次的编辑处(3)F2当鼠标放在一个标记处出现Tooltip时候按F2则把鼠标移开时Tooltip还会显示即Show Tooltip Description。 F3跳到声明或定义的地方。 F5单步调试进入函数内部。 F6单步调试不进入函数内部,如果装了金山词霸2006则要把“取词开关
2008-05-26 21:04:00 561
Sina News IOS
2016-06-02
How to config the Python develop environment
2015-08-24
COM and .NET Component Services
2010-05-29
COM and .NET Interoperability
2010-05-29
DotNetBookZero
2009-11-25
ADVANCED WINDOWS DEBUGGING(English Full)
2009-10-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人