minidao demo 执行错误
运行环境: jdk 1.8 +tomcat 7 + mysql 5.7.17点开 常用示例—— minidao列表 ,正常显示列表;点击 查询 ,也可正常显示,后台eclipse运行日志报错:
全局处理异常捕获:
org.hibernate.hql.internal.ast.QuerySyntaxException: JeecgListDemoEntity is not mapped
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
(1)
输入“名称” 查询,报错,但是前台可正常显示查询结果:
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar ; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20,10' at line 1
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:231)
全局处理异常捕获:
org.hibernate.hql.internal.ast.QuerySyntaxException: JeecgListDemoEntity is not mapped
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
(2)
点击年龄,查询和运行正常
(3)选择“部门”下拉列表,查询 报错:
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar ; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20,10' at line 1
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:231)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
页:
[1]