- 博客(4)
- 资源 (1)
- 收藏
- 关注
转载 java /替换 Unexpected internal error near index 1
代码: [html] view plain copy String str="a\\c"; //出现异常,Unexpected internal error near index 1 //System.out.println(str.replaceAll("\\", "c")); //以下三种都正确 Sy
2016-06-28 14:36:51 1887
原创 ftpClient ,httpClient
最近项目需要实现FTP上传、下载功能以及http接口,采用了Apache Commons Net API。代码很快就完成了,但由于对相关API使用场景不是很熟悉,走了一些弯路,抽一点时间做一下总结。 出现过FTP response 421 received.Server closed connection 异常,原因是 加了ftpClient.enterLocalPassiveM
2016-06-23 08:47:35 3078 2
原创 net.sf.ezmorph.bean.MorphDynaBean cannotbe cast to xxx
net.sf.ezmorph.bean.MorphDynaBean cannotbe cast to xxx 在操作json的数据格式的时候,如果没有指明数据类型,那么只能是基本类型或者是String类型,不能出现复杂数据类型。 for(Map map : datas){ String gw_id = map.get("GW_ID").toString();
2016-06-18 14:48:44 17223 2
原创 Sql索引使用
sql查询中,因为我们键盘输入的总是字符型,遇到不同的数据类型,比较的时候,总是要把数据类型转换一致,常用的思路有两种(oracle为例): 新建表 td_rewardworkf,表结构如图: 表数据百万左右。 1,将原数据表的列 转换成 字符类型,然后和 具体条件比较,即:to_char(oprtime,'yyyymm')>'201605
2016-06-06 18:13:52 695
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人