1,Result Maps用错,应该用resultType
2020-12-25 11:32:12.796 ERROR 5576 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.yjg.honest.mybatis.bean.Product] with root cause
java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.yjg.honest.mybatis.bean.Product
at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:1031) ~[mybatis-3.5.6.jar:3.5.6]
2.mybatis映射文件里,SQL文加了分号,应去除分号。
### The error occurred while setting parameters
### SQL: select * from product; LIMIT ?
### Cause: java.sql.SQLSyntaxErrorException: You have an error in your