javaweb项目中使用springMVC+spring+hibernate,生成对象关系失败,求高手破解。
ApplicationContextcontext=newClassPathXmlApplicationContext("modules/core/spring.xml"...
ApplicationContext context = new ClassPathXmlApplicationContext("modules/core/spring.xml"); UserDaoImpl xx = (UserDaoImpl) context.getBean("UserDao"); xx.increaseDao();以上方法可以正常运行,启动服务器运行就会报错,代码和错误都会贴出来,麻烦大家帮帮忙,真的很着急,谢谢。严重:Servlet.service() for servlet [springmvc] in context with path [/yoofaOnline] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询