随笔分类 -  Mybatis

Mybatis
摘要:具体错误信息: org.apache.ibatis.binding.BindingException: Mapper method 'com.xx.xx.xx.xx.xx.getCount attempted to return null from a method with a primitive 阅读全文
posted @ 2021-02-20 13:11 野狼谷 阅读(3773) 评论(1) 推荐(0) 编辑
摘要:之前每次都是通过循环去写,感觉代码不够优雅,百度了一下,查到如下的写法,先记下来: List<Long> list = new ArrayList<Long>(); list.add(1L); list.add(2L); list.add(3L); System.out.println(list); 阅读全文
posted @ 2020-09-04 17:20 野狼谷 阅读(2748) 评论(0) 推荐(0) 编辑
摘要:MySql默认是不支持这种骚操作的,但是并不代表不能实现,只需要在jdbc的配置文件中稍做配置: driver=com.mysql.jdbc.Driverurl=jdbc:mysql://127.0.0.1:3306/airipo?useUnicode=true&characterEncoding= 阅读全文
posted @ 2020-07-15 15:24 野狼谷 阅读(1770) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示