2008年11月8日
摘要: 错误: java.lang.NullPointerException 原因: 发现 dao 实例、 manage 实例等需要注入的东西没有被注入 解决:这个时候,你应该查看日志文件;默认是应用服务器的 log 文件,比如 Tomcat 就是 [Tomcat 安装目录 ]/logs ;你会发现提示你: 可能是: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sf' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.HibernateException: could not configure from URL: file:src/hibernate.cfg.xml org.hibernate.HibernateEx 阅读全文
posted @ 2008-11-08 09:51 小顾问 阅读(1271) 评论(0) 推荐(1) 编辑