org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found 解决方法

报错:org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'xxx'.  It's likely that neither a Result Type nor a Result Map was specified.

Reason: This is because the SQL query statement used does not return a value of a general data type, as follows

After modification: Add return type resultType="java.lang.Long" as follows

This will solve the problem

Guess you like

Origin blog.csdn.net/weixin_57997644/article/details/132766203