执行hql语句的时候报出了下面的错误:
15:16:14.500 [http-nio-8080-exec-9] ERROR org.hibernate.hql.internal.ast.ErrorCounter - line 1:1: unexpected token: form
15:16:14.501 [http-nio-8080-exec-9] ERROR org.hibernate.hql.internal.ast.ErrorCounter - line 1:1: unexpected token: form
antlr.NoViableAltException: unexpected token: form
这是因为hql语句中出现了不能识别的字符串或符号,修改过来就可以了。例如这条错误中from写成了form。