2 followyourheart1 followyourheart1 于 2014.09.26 09:22 提问

使用SSH框架时候,启动项目包的错?如何处理?

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptDao': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in file [D:\MyEclipse 8.5_Codes.metadata.me_tcat\webapps\oa\WEB-INF\classes\applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\MyEclipse 8.5_Codes.metadata.me_tcat\webapps\oa\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V

1个回答

u010792467
u010792467   2014.09.26 10:16

deptDao 这个类是不是在Spring中没有映射?或者没有在类中关联

followyourheart1
followyourheart1 您可以说的具体一点么,是哪里的映射?怎么样的映射?在类中怎么关联?
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!