Type Exception Report
Message org.hibernate.PropertyNotFoundException: Could not resolve PropertyAccess for num on class java.util.HashMap
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
javax.persistence.PersistenceException: org.hibernate.PropertyNotFoundException: Could not resolve PropertyAccess for num on class java.util.HashMap
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154)
原代码:(通过设置返回的格式为map 出错)
改为:
上面的问题解决!!!!!
问题来了????为什么,跟hibernate 的版本有有关吗??我看教学视频上都是第一种原代码(原来的代码),没有出错。我的hibernate版本太高了吗。