我前几天买了一本《Spring技术手册》我按照书上的每一个例子做了一下,边做边思考,总有种爱不释手的感觉。对于刚学spring的人真的是本好书
可我有个小问题:
我在用Eclipse做Hibernate+spring的时候出了点问题,我先用Hibernate做了一个小练习没问题数据可以插入数据库中。接着我用MyEclipse点Add Spring Cabalities想用spring整和一下 可我加完了spring后,把测试类里也改用spring注入得到UserDAO
我运行的时候出现了一个提示:
An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_FLT_STACK_CHECK (0xc0000092) at pc=0x00dd0758, pid=1572, tid=1596
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)
# Problematic frame:
# v ~RuntimeStub::load_klass_patching Runtime1 stub
#
# An error report file with more information is saved as hs_err_pid1572.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
可我手动添加spring.jar包然后手动创建applicationContext.xml文件就没有这个问题