java - mybatis update失败却不报错
怪我咯
怪我咯 2017-04-18 10:36:41
0
5
1166
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(5)
洪涛

I don’t know if you have configured the console output and the configuration of the sql statement issued. If you have configured it, you can check whether there is any problem with the sql statement issued

小葫芦

If an error occurs, an exception should be thrown. If the update number is 0, it can only mean that no data has been updated. Generally speaking, there are two reasons: one is that the data to be updated is not found according to the WHERE condition; the other reason is that it is found, but the new data and the data stored in the database are different. the same.

迷茫

I am also very good, maybe you can write out the type resultType returned by update

Peter_Zhu

When running, the console will output the actual SQL during execution. Check carefully to see if there are any problems, or copy it to DBMS for execution

阿神

If there is no exception, it means that the update where condition is not established and there is no record that meets the update condition

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template