异常:Mapper method 'com.***.delByNumber' has an unsupported return type: class java.lang.String
本文共 110 字,大约阅读时间需要 1 分钟。
问题情况,如图:
错误内容详情,如图:
解决办法:
1、把Controller层
改为这样:
2、把Service层
改为这样:
3、把Mapper层
改为这样:
4、最后把Mapper.xml
改为这样:
问题就解决了
转载地址:http://gxubb.baihongyu.com/