1. Problem: MybatisPlus paging query clearly sets the number of queries per page to 10,000, but still only finds out 500 pieces of data Reason
: The PaginationInterceptor of the lower version of MyBatis-Plus defines a default limit of 500, which is set when the size exceeds the limit The value scheme where size is limit
: modify the limit attribute paginationInterceptor.setLimit(10000) in the configuration class PaginationInterceptor;
Question: According to the Internet, if the limit value is -1, the memory will exceed the limit due to the large amount of query data, but there are also People are set to -1
2. Problem: In MyBatis/MyBatis-Plus, when the value of the integer type field is 0, the if test condition fails
Reason: In the source code of MyBatis, when judging the value of the integer type, the value of 0 will be processed by default as Empty string''
solution: only judge non-null
Stepping on the pit-MyBatis/MyBatis-Plus
Guess you like
Origin blog.csdn.net/mnimxq/article/details/130716972
Ranking