SetParameter错误:java.time.Instant cannot be resolved

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+

猜你喜欢

转载自www.cnblogs.com/browselife/p/10679739.html