![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis-异常
问心 有愧
这个作者很懒,什么都没留下…
展开
-
[mybatis-异常]: NullPointerException Can't add values % , null
异常信息: NullPointerException Can’t add values % , null 解决方案: 对于 // ProductMapper.java List<Product> likeTest(@Param("name") String name); 可能有空指针异常(NPE) <bind name="likeName" value="'%...原创 2018-04-25 11:31:07 · 5149 阅读 · 1 评论 -
[mybatis-异常]: ReflectionException:There is no getter for property named 'name' in
异常信息: ReflectionException: There is no getter for property named ‘name’ in ‘class java.lang.String’ 原因: 没有使用@Pram注解 1- 一个入参, 但是在 使用了该 入参变量, 并且没有使用@Pram注解 对于 String test(String name); #...原创 2018-04-25 11:46:24 · 4048 阅读 · 0 评论 -
[mybatis-异常]:ExecutorException: A query was run and no Result Maps were found for the Mapped Statem
异常信息: ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘com.win.mall.dao.CartMapper.test’. It’s likely that neither a Result Type nor a Result Map was spec...原创 2018-04-25 11:53:06 · 1945 阅读 · 0 评论 -
[mybatis-异常]:BindingException: Mapper method 'CartMapper.testSum attempted to return null from a met
异常信息: org.apache.ibatis.binding.BindingException: Mapper method ‘CartMapper.testSum attempted to return null from a method with a primitive return type (int). // CartMapper int testSum(Integer use...原创 2018-04-25 12:24:20 · 1443 阅读 · 2 评论