猿问

添加学生时总是显示错误,是Hibernate映射中的一对多

INFO: HHH000041: Configured SessionFactory: null

Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.integrator.internal.IntegratorServiceImpl.<init>(Ljava/util/LinkedHashSet;Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;)V

at org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.build(BootstrapServiceRegistryBuilder.java:215)

at org.hibernate.boot.registry.StandardServiceRegistryBuilder.<init>(StandardServiceRegistryBuilder.java:71)

at com.immoc.hibernateUtil.HibernateUntil.<clinit>(HibernateUntil.java:15)

at com.immoc.Test.b.add(b.java:22)

at com.immoc.Test.b.main(b.java:14)


慕斯卡3630750
浏览 1635回答 1
1回答

大LOVE辉

SessionFactory sessionFactory =new Configuration().configure().buildSessionFactory();初始值赋值了吗
随时随地看视频慕课网APP

相关分类

Java
我要回答