
Spring
xu_click
会用到会写的转变
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
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 评论 -
MyBatis SQL多个参数 Parameter 'personId' not found. Available parameters are [0, 1, param1, param2]
Parameter ‘personId’ not found. Available parameters are [0, 1, param1, param2]mybatis 的映射文件mapper.xml中传入多个查询参数时,mybatis会对参数进行处理。处理为map形式。我们在mapper.xml中需要做特殊处理; <select id="selectByNameAndPerso...原创 2019-02-21 18:03:27 · 1342 阅读 · 0 评论