1. 程式人生 > >mybatis返回boolean值時數據庫返回null

mybatis返回boolean值時數據庫返回null

oot ive nes ini ted pri tps details service

Servlet.service() for servlet [springDispatcherServlet] in context with path [/ms] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Mapper method ‘com.ms.dao.AdminDao.checkLoginAdminInfo attempted to return null from a method with a primitive return type (boolean).] with root cause
org.apache.ibatis.binding.BindingException: Mapper method ‘com.ms.dao.AdminDao.checkLoginAdminInfo attempted to return null from a method with a primitive return type (boolean).

參考:

https://blog.csdn.net/lw1242189467/article/details/80812881

https://blog.csdn.net/hbxtw/article/details/10133229

mybatis返回boolean值時數據庫返回null