随笔- 192
文章- 0
评论- 157
12 2010 档案
java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter 异常解决办法
摘要: 解决方法:将Hibernate lib包下的cglib-2.1.3.jar添加到项目的library中。阅读全文
hibernate -----Could not instantiate cache implementation异常处理(转)
摘要: 大概意思是二级缓存不可用,但是项目在开发阶段不需要启动缓存,所以就没有配置。最后发现问题就是在这里,因为在Hibernate的bean的hbm配置文件中配置了缓存,而在hibernate的配置中没有配置提供的缓存机制,在早起的hibernate的早起版本中默认是提供ehcache的,但是在最近的版本中已经不提供默认配置了。所以必须自己手工配置。在hibernate的配置中加入如下片段即可<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property><property n阅读全文
LOG4J 警告错误处理办法(转)
摘要: log4j:WARN No appenders could be found for logger(org.springframework.context.support.ClassPathXmlApplicationContext).log4j:WARN Please initialize the log4j system properly.Spring 使用了LOG4J 这个开源框架来输出信息,要解决这个问题非常简单,建立LOG4J 的配置文件即可。在src 目录下创建配置文件,选择菜单File > New > File,文件名输入log4j.properties,文件内容如下所示:log阅读全文
Spring+JDBC组合开发
摘要: 使用Spring+JDBC组合开发步骤:1、配置数据源<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xml阅读全文

