03 2021 档案

摘要:https://segmentfault.com/a/1190000006577082 问题定位:该问题通常出现在动态sql中,使用String与char类型做比较。如: <if test="segment != null and segment != '' and segment == '1'"> 阅读全文
posted @ 2021-03-29 11:47 机械公敌 阅读(751) 评论(0) 推荐(0)
摘要:ArrayList<String> list=new ArrayList<String>(); String strings[]=(String [])list.toArray(); 这样写编译没有什么问题,但是运行时会报ClassCastException,这是因为Java中允许向上和向下转型,但 阅读全文
posted @ 2021-03-25 21:46 机械公敌 阅读(71) 评论(0) 推荐(0)
摘要:(select * from table1) 错误,语法不对,()会当作一张表或一个字段(case when)来处理。 阅读全文
posted @ 2021-03-16 17:55 机械公敌 阅读(42) 评论(0) 推荐(0)