java.sql.SQLException: 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 '-4,4' at line 1 Query: select id,title,author,price,sales,stock,img_path from books where 1=1 limit ?,? Parameters: [-4, 4]
at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:392)
at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:351)
at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:212)
at joker.dao.BaseDao.getBeanList(BaseDao.java:97)
at joker.dao.impl.BookDaoImpl.getBooksByPage(BookDaoImpl.java:57)
at joker.service.impl.BookServiceImpl.getBookByPage(BookServiceImpl.java:50)
at joker.servlet.BookServlet.getBooksByPage(BookServlet.java:50)
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.ja
check the manual that corresponds to your MySQL server version for the right syntax to use nea异常解决方法
最新推荐文章于 2023-03-09 15:55:16 发布