exception [Request processing failed: org.mybatis.spring.MyBatisSystemException] with root cause

启动Spring框架调用时控制台报出:

2023-12-18T14:48:59.576+08:00 ERROR 28732 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.mybatis.spring.MyBatisSystemException] with root cause

org.apache.ibatis.executor.ExecutorException: No constructor found in void matching [java.lang.Long, java.lang.String, java.time.LocalDateTime, java.time.LocalDateTime]
    at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.lambda$createByConstructorSignature$1(DefaultResultSetHandler.java:729) ~[mybatis-3.5.14.jar:3.5.14]
    at java.base/java.util.Optional.orElseThrow(Optional.java:403) ~[na:na]
 

 出现MyBatisSystemException,说明mybatis在进行转换的过程中出现了错误,这个时候返回代码中查看自己前端调用的方法是不是查询,如果前端调用的是查询方法,则后端需要有对应的返回值,就需要对应的封装!