attempted to return null from a method with a primitive return type (int).
attempted to return null from a method with a primitive return type (int).发生的场景:数据库中查询出的数据为NULL.在逻辑层我们需要对NULL进行处理,文末给出答案.举例:查询 person 表中phone=123456 的用户.mybatis 提供的实现. <select id="getUserByP...
原创
2019-01-25 17:33:46 ·
8051 阅读 ·
2 评论