摘要: [Ljava.lang.String; cannot be cast to java.lang.String错误2011-02-10 10:10:46|分类:技术|字号订阅今天使用request.getParameterMap()获得Map中的数据时,使用 Map map=hrequest.getParameterMap(); Set key = map.keySet(); for(Object aaa: key.toArray()){ parakey = aaa.toString(); paravalue = (String)map.get(aaa); ... 阅读全文
posted @ 2013-03-18 21:40 眉间尺之魂 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/fetch001/article/details/7561453这一两天在学习string的一些用法,记得在来北京面试的时候,别人现场的考的试题里面就包含对string方法的使用,由于当时对string方法不熟悉,就模棱两可的回答别人,现在学习了后,想想都觉得当时汗颜 啊,嘿嘿,不过还好,现在基本用法都已经基本掌握了,做下这些笔记希望对自己或阅读的朋友有一定的帮助。string类适用于描述字符串事物。那么它就提供了多个方法对字符串进行操作以下是string的七种用法,注意哦,记得要时常去查看java的API文档,那个里面也有很详细的介绍1,获取1 阅读全文
posted @ 2013-03-18 20:58 眉间尺之魂 阅读(209) 评论(0) 推荐(0) 编辑
摘要: SchemaExport生成数据库表一.Hibernate原生状态1Configuration cfg =newConfiguration().configure();23SchemaExport export =newSchemaExport(cfg);45export.create(true,true);二.Hibernate整合Spring 1.使用hibernate.cfg.xml原生配置 hibernate.cfg.xml同原生一样编写在Spring主配置文件applicationContext中,引入hibernate.cfg.xml 使用SchemaExport生成数据库表的代码 阅读全文
posted @ 2013-03-18 10:45 眉间尺之魂 阅读(228) 评论(0) 推荐(0) 编辑