mybatis use xml to achieve one of the exception return null from a method with a primitive return type (int)

 

 

 

main reason:

1, the interface returns the error value

2, xml error interface (mainly label wrong)

 

Here I interface:

 

 Phrase and found no errors, then I look at the interface xml:

 

 

Obviously we discovered the error here select, insert, update, delect the return value of type int, the return value is not written;

Here is the label wrong:

The revised Code:

 

 The resultType removed:

 

Guess you like

Origin www.cnblogs.com/bichen-01/p/11730252.html