mybatis resultMap="Long" reported red

A very low-level mistake today that wasted 20 minutes of my time. Record it here.

Phenomenon

In mybatis, I want to check the minimum value of an id. The return type is Long. The result is that it will not work.
insert image description here

Solution

I found out that I made a mistake, so I resultMapchanged it to resultTypesolve the problem!

Summarize

Still too careless! The side effects of copying code frequently.

Guess you like

Origin blog.csdn.net/lxyoucan/article/details/131288578