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

错误内容详情,如图:

Mapper method 'com.***.delByNumber' has an unsupported return type: class java.lang.String

解决办法:

1、把Controller层

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

2、把Service层

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

3、把Mapper层

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

4、最后把Mapper.xml

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

问题就解决了

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