javaweb[ssh]程序报错Legacy-style query parameters (`?`) are no longer supported;

版权声明:博主原创转载请注明出处:https://blog.csdn.net/qq_42952331 https://blog.csdn.net/qq_42952331/article/details/84778064

org.hibernate.QueryException: Legacy-style query parameters (?) are no longer supported; use JPA-style ordinal parameters (e.g., ?1) instead : from hncj.edu.crm.staff.daomain.CrmStaff where loginName=? and loginPwd = ? [from hncj.edu.crm.staff.daomain.CrmStaff where loginName=? and loginPwd = ?]
在这里插入图片描述

当遇到这种情况是可能是因为使用的占位符已过时,(主要出现在高版本中,如图此版本为5.3.6))
在这里插入图片描述
当修改占位符后问题解决。

猜你喜欢

转载自blog.csdn.net/qq_42952331/article/details/84778064
今日推荐