- 博客(2)
- 收藏
- 关注
转载 MyBatis中if标签注意问题
mybatis做if判断注意 mybatis做if 判断 注意:下面这种写法只适用于 id 类型为字符串. id = #{id} 如果id类型为int 当id=0时 这个判断不会进入. 可以这样写test="id != null and id != '' or id==0">
2017-06-06 15:54:17
1982
1
原创 获取ClassPath路径
String classPath = Thread.currentThread().getContextClassLoader().getResource("").getPath(); String classPath2 = PDFUtils.class.getProtectionDomain().getCodeSource().getLocation().getPath(); String
2017-05-05 14:14:39
875
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人