spring hibernate - dao.save(object) 返回空指针异常
非常感谢
can anyone help me with the following thread?
http://forum.springsource.org/showthread.php?110248-dao.save%28object%29-java.lang.NullPointerException&p=365538#post365538
Many thannks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Spring 没有将
PatientDaoImp
注入到您的控制器中。试试这个:还要确保以下声明位于您的
*-servlet.xml
上下文文件(而不是主上下文文件)中:Spring didn't inject
PatientDaoImp
into your controller. Try this:Also make sure the following declaration is in your
*-servlet.xml
context file (not the main context file):另外请添加:
到您的
*-servlet.xml
文件中。In addition please add:
to you
*-servlet.xml
file.