摘要: ApacheCommons是一个非常有用的工具包,解决各种实际的通用问题,下面是一个简述表,详细信息访问http://jakarta.apache.org/commons/index.htmlBeanUtilsCommons-BeanUtils提供对Java反射和自省API的包装BetwixtBet... 阅读全文
posted @ 2015-02-10 10:22 Mr_谢振海 阅读(499) 评论(0) 推荐(0) 编辑
摘要: /* 一般情况下接口感觉没什么用。增删改查我们有一个实现类就可以搞定。处理的东西在多了可以分多个包。 * 类似于com.user.*;com.group.*;com.role.*; * * 所以普通做法是这样的: */ public class SportsCar { public voi... 阅读全文
posted @ 2014-10-17 14:20 Mr_谢振海 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: 今天在使用spring驱动Hibernate时发生了一件事情,发现hibernatetemplate在被注入后,无法使用。什么save()、find()、get()等都不行。也看了网上好多解决办法,但问题并不出在这个true或者这个getHibernateTemplate().flush()【个人感... 阅读全文
posted @ 2014-10-16 16:39 Mr_谢振海 阅读(3924) 评论(0) 推荐(0) 编辑
摘要: [Line 1 in XML document from class path resource [xxx.properties] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 1; column... 阅读全文
posted @ 2014-09-27 11:42 Mr_谢振海 阅读(10196) 评论(0) 推荐(1) 编辑
摘要: 1.退出eclipse;2.打开 [工程目录下]/.metadata/.plugins/org.eclipse.core.runtime目录;3.删除org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件 ;4.重启eclipse 。 阅读全文
posted @ 2012-11-08 16:16 Mr_谢振海 阅读(177) 评论(0) 推荐(0) 编辑