您的位置: 首页 > 文章 > Mapper method 'com.***.delByNumber' has an unsupported return type: class java.lang.String Mapper method 'com.***.delByNumber' has an unsupported return type: class java.lang.String 分类: 文章 • 2024-09-17 17:10:40 问题情况,如图: 错误内容详情,如图: 解决办法: 1、把Controller层 改为这样: 2、把Service层 改为这样: 3、把Mapper层 改为这样: 4、最后把Mapper.xml 改为这样: 问题就解决了