1. 程式人生 > >SetParameter錯誤:java.time.Instant cannot be resolved

SetParameter錯誤:java.time.Instant cannot be resolved

找到 ant class 錯誤 creat rom tro solved query

SetParameter

Hibernate使用SetParameter錯誤

        List<Customer> list = session.createQuery(hql).setParameter("a", 2l).list();

The type java.time.Instant cannot be resolved. It is indirectly referenced from required .class files

原因:

暫沒有找到

更改方法:

將jre版本改為1.8+

SetParameter錯誤:java.time.Instant cannot be resolved