问答详情
源自:2-6 页面调用

ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings(config.getProperties()).builderServiceRegistry();这句话报错,最后的builderServiceRegistry()没有,是怎么回事

ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings(config.getProperties()).builderServiceRegistry();这句话报错,最后的builderServiceRegistry()没有,是怎么回事

提问者:青岩立雪2016 2016-09-08 02:48

个回答

  • 慕粉18788511932
    2016-09-08 14:36:17

    应该是包导入错误了 !要导入这个包 ( import org.hibernate.service.ServiceRegistry;)