版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36570464/article/details/84894168
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 出错)
改为:
上面的问题解决!!!!!
扫描二维码关注公众号,回复:
5424141 查看本文章
问题来了????为什么,跟hibernate 的版本有有关吗??我看教学视频上都是第一种原代码(原来的代码),没有出错。我的hibernate版本太高了吗。