hibernate框架碰到的问题

qq_35634746 2016-07-26 09:52:10
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The import org.hibernate cannot be resolved
The import org.hibernate cannot be resolved
Transaction cannot be resolved to a type
Session cannot be resolved to a type
The method getSession() from the type HibernateSessionFactory refers to the missing type Session
Transaction cannot be resolved to a type
Session cannot be resolved to a type
The method getSession() from the type HibernateSessionFactory refers to the missing type Session
Transaction cannot be resolved to a type
Session cannot be resolved to a type
The method getSession() from the type HibernateSessionFactory refers to the missing type Session
Transaction cannot be resolved to a type
Session cannot be resolved to a type
The method getSession() from the type HibernateSessionFactory refers to the missing type Session
Transaction cannot be resolved to a type
Session cannot be resolved to a type
The method getSession() from the type HibernateSessionFactory refers to the missing type Session
Transaction cannot be resolved to a type
Session cannot be resolved to a type
The method getSession() from the type HibernateSessionFactory refers to the missing type Session

at com.kawa.hibernate.dao.impl.UserDaoImpl.<init>(UserDaoImpl.java:3)
at test.Test.main(Test.java:15)


今天用hibernate框架测试的时候出现这个该怎么解决 jar包我已经导过了如图

...全文
135 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
阳光越来越暖 2016-07-27
  • 打赏
  • 举报
回复
没代码 真不知道好知道你哪错了 at com.kawa.hibernate.dao.impl.UserDaoImpl.<init>(UserDaoImpl.java:3) at test.Test.main(Test.java:15) 检查下这两行吧
豆腐花发 2016-07-27
  • 打赏
  • 举报
回复
debug模式一行一行找

50,530

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧