//输出流 @Test public void testOutStream() throws Exception{ OutputStream out =new FileOutputStream("abc.txt"); String content="hello word/nwww.baidu.c.....
分类:
编程语言 时间:
2014-06-18 21:16:47
阅读次数:
280
//缓存数据流 @Test public void testBufferReaderAndWriter() throws IOException{ //创建文件字符输入流 Reader in=new FileReader("abc.txt"); BufferedReader br=new Bu...
分类:
编程语言 时间:
2014-06-18 19:22:40
阅读次数:
300
2014-06-16 BaoXinjian一、摘要在需求后期,对实现该需求的代码进行调试时一个不可忽略的步骤,可以确保代码在上线后尽可能避免出现bug和异常在OAF开发中一般相关的部分主要有1. 使用OAF Bug工具调试代码设定Breakpoint断电查看Exception Stack Trace...
分类:
其他好文 时间:
2014-06-18 19:00:31
阅读次数:
556
Struts Problem ReportStruts has detected an unhandled exception:Messages:No suitable driver found for jdbc:mysql://localhost:3306/hibernate_basicCanno...
分类:
数据库 时间:
2014-06-18 18:41:57
阅读次数:
249
--将字符转换城数据--CREATE OR REPLACE function CharToNumber(strNumber varchar2) RETURN NUMBERISBEGIN RETURN (to_number(strNumber));EXCEPTION WHEN ...
分类:
其他好文 时间:
2014-06-18 18:01:10
阅读次数:
158
主线程调用子线程的interrupt()方法,导致子线程抛出InterruptedException, 在子线程中catch这个Exception,不做任何事即可从Sleep状态唤醒线程,继续执行。 如下测试。public class SleepThreadTest { public static ...
分类:
编程语言 时间:
2014-06-18 17:26:12
阅读次数:
523
7.1 概述7.1.1 JDBC回顾 传统应用程序开发中,进行JDBC编程是相当痛苦的,如下所示:java代码://cn.javass.spring.chapter7. TraditionalJdbcTest @Test public void test() throws Exception {.....
分类:
数据库 时间:
2014-06-17 20:23:13
阅读次数:
374
堆栈信息:2014-6-17 10:33:58 org.apache.tomcat.util.digester.Digester endElement严重: End event threw exceptionjava.lang.IllegalArgumentException: Can't conv...
分类:
编程语言 时间:
2014-06-17 16:02:16
阅读次数:
312
#!/usr/bin/pythonimport tracebacktry: 1/0#except Exception,e:# print traceback.format_exc() except Exception as e: print e#!/usr/bin/pythonimport tra....
分类:
编程语言 时间:
2014-06-17 15:07:08
阅读次数:
329
1 public class Demo { 2 3 /** 4 * 反射:加载类,获得类的字节码 5 * @param args 6 * @throws ClassNotFoundException 7 */ 8 public stati...
分类:
其他好文 时间:
2014-06-17 12:59:36
阅读次数:
237