是jar包缺了嗎
ServiceRegistry serviceRegistry = new ServiceRegistry....時
為什么我一直只能導入import org.jboss.weld.bootstrap.api.Service;
import org.jboss.weld.bootstrap.api.ServiceRegistry;
不能導入org.hibernate.service.ServiceRegistry; org.hibernate.service.ServiceRegistryBulider;
2017-09-14
也不一定是jar包缺了,你可已查看一下項目中有沒有jar包,如果有,可能是因為你沒有build path,你只需要右鍵jar包然后選擇build path的 configure buil ,d path,點開之后有個add,將jar包添加進去然后apply就行