----------------------------------------------------------------------EExternal = class(Exception) EExternalException = class(EExternal) 无效的异常码 整数计算异常...
分类:
其他好文 时间:
2014-07-23 16:20:51
阅读次数:
212
public static void main(String[] args) throws Exception { long a = Long.MAX_VALUE; long b = Long.MAX_VALUE; BigDecimal ba = new B...
分类:
其他好文 时间:
2014-07-23 16:20:01
阅读次数:
164
if(conn != null) { try { conn.close(); } catch(Exception e) { e.printStackTrace(); } conn = null; }写个工具类来关也可以: public static void close...
分类:
数据库 时间:
2014-07-23 15:01:16
阅读次数:
329
参考下面代码,在Action中加一个方法: 1 // 导出excel 2 public String excel() throws Exception { 3 StringBuffer excelBuf = new StringBuffer(); 4 excelBuf...
分类:
其他好文 时间:
2014-07-23 12:51:16
阅读次数:
193
很多小猿遇到这个Exception 的时候,都会有点无厘头。这个时候最好try-- catch下,找到出错的地方。本人习惯在页面上加个lable标签,把exc msg(exception message)输出的到lable,这样可以省的再调试,直接可以看到错误信息。但有时还是需要去打断点调试,这样才...
分类:
其他好文 时间:
2014-07-23 12:46:56
阅读次数:
197
Error : An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x8...
分类:
其他好文 时间:
2014-07-22 22:46:53
阅读次数:
194
自定义类加载器是在是血的不怎明白这里只学会了一个简单的加密解密方法//定义一个加密方法public static void md(InputStream inputStream,OutputStream outputStream) throws Exception{int b = 0;while((...
分类:
其他好文 时间:
2014-07-22 00:21:33
阅读次数:
196
XMLMapperBuilder.java ? //解析<cache?/>?配置元素,创建cache对象
private?void?cacheElement(XNode?context)?throws?Exception?{
????if?(context?!=?null)?{
??????String?typ...
分类:
其他好文 时间:
2014-07-21 23:31:03
阅读次数:
414
Action类的execute()方法:
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException ;...
分类:
其他好文 时间:
2014-07-21 22:46:07
阅读次数:
280