首页 > 编程语言 >Mapper method 'org.lin.hms.dao.IndentDAO.insertIndent' has an unsupported return type: int

Mapper method 'org.lin.hms.dao.IndentDAO.insertIndent' has an unsupported return type: int

时间:2023-02-26 20:44:41浏览次数:53  
标签:Mapper return insertIndent int lin unsupported java type

出现这种错误,说明sql语句执行成功,只是返回类型出了问题。

 

解决办法:

mapper文件中的update,delete,insert语句是不需要设置返回类型的,它们都是默认返回一个int ,所以把返回值类型改成 int。

在DAO 层中改

原来:

改后:

 

标签:Mapper,return,insertIndent,int,lin,unsupported,java,type
From: https://www.cnblogs.com/lin-07/p/17157588.html

相关文章