博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年9月19日

摘要: 问题:Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException 方法:添加ehcache.jar(高速缓存,提高存取速度) 阅读全文

posted @ 2010-09-19 14:55 记录 阅读(3973) 评论(0) 推荐(0) 编辑

2010年9月10日

摘要: <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/security"     xmlns:beans="http://www.spring... 阅读全文

posted @ 2010-09-10 12:06 记录 阅读(4387) 评论(0) 推荐(0) 编辑

2010年9月9日

摘要: 我们默认使用的URL匹配器就是这个AntUrlPathMatcher,它来自于http://ant.apache.org/项目,是一种简单易懂的路径匹配策略。 它为我们提供了三种通配符。 通配符:? 示例:/admin/g?t.jsp 匹配任意一个字符,/admin/g?t.jsp可以匹配/admin/get.jsp和/admin/got.jsp或是/admin/gxt.do。不能匹配/admi... 阅读全文

posted @ 2010-09-09 10:46 记录 阅读(2598) 评论(0) 推荐(1) 编辑

2010年9月8日

摘要: 应该是使用了MD5编码的口令造成的,因为需要apache的codec库进行编码,所以将SpringFramework包中的lib/jakarta-commons/commons-codec.jar拷贝到类加载目录 阅读全文

posted @ 2010-09-08 12:12 记录 阅读(2703) 评论(0) 推荐(0) 编辑

摘要: 参考资料: http://www.family168.com/oa/springsecurity/html/index.html 阅读全文

posted @ 2010-09-08 10:40 记录 阅读(384) 评论(0) 推荐(0) 编辑

2010年8月28日

摘要: 情形:用户注册,或则使用到 sessionFactory.getCurrentSession().persist();方法时候,第一次保存正常,在没有重启下再保存下一个就报 org.hibernate.PersistentObjectException: detached entity passed to persist异常 原因分析: 1。保存第一个的时候已经赋值了id,因为配置了hiberna... 阅读全文

posted @ 2010-08-28 11:38 记录 阅读(8391) 评论(0) 推荐(0) 编辑

2010年8月13日

摘要: Tomcat中有时候即使浏览路径完全正确,也不一定能够找到正确的文件。造成这种现象的原因很多,我把最先想到的两个说一下。1. 映射错误:加入在web.xml中给 /abc/*做了一个映射,映射到了/abc.jsp,那么你浏览的即使是/abc/下面的真是文件,也会被当作/abc.jsp访问。加入这个 /abc.jsp是不存在的文件,那么你所有以/abc/开始的路径全部都会返回404错误。2.过滤器代... 阅读全文

posted @ 2010-08-13 14:19 记录 阅读(853) 评论(0) 推荐(0) 编辑

2010年7月21日

摘要: 错误:nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocation of init method fai... 阅读全文

posted @ 2010-07-21 16:08 记录 阅读(3181) 评论(0) 推荐(0) 编辑

摘要: 错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'companyServiceBean': Injection of resource fields failed; nested exception is org.springframework.beans.facto... 阅读全文

posted @ 2010-07-21 16:05 记录 阅读(6010) 评论(0) 推荐(0) 编辑

2010年7月17日

摘要: 病理特征:Caused by: org.hibernate.PersistentObjectException: detached entity passed to persist: com.xxx.Xxx 修改的时候使用: em.persist(entity)保存一个对象后来把它改成em.merg(entity)便成功了。。。 阅读全文

posted @ 2010-07-17 14:13 记录 阅读(1005) 评论(0) 推荐(0) 编辑