上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 81 下一页
摘要: 转载:https://blog.csdn.net/qq360694660/article/details/82877222 阅读全文
posted @ 2020-10-12 11:40 路要一步一步走 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/neweastsun/article/details/78775371 阅读全文
posted @ 2020-10-12 11:38 路要一步一步走 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 多在mapper接口写@Param注解, 那么,你在mapper.xml alt+/会有提示 为什么不写parameterType也可以运行成功? 因为mybatis能自动识别,但返回值类型不能不写 (idea-mybatis插件也不生成parameterType,刚好,以后推荐不写paramete 阅读全文
posted @ 2020-10-10 20:22 路要一步一步走 阅读(4611) 评论(0) 推荐(0) 编辑
摘要: 1) 使用#{参数}传入会加上单引号,sql语句解析是会加上"", 比如 select * from table where name = #{name} ,传入的name为小李,那么最后打印出来的就是 select * from table where name = ‘小李’,就是会当成字符串来解 阅读全文
posted @ 2020-10-10 20:18 路要一步一步走 阅读(1605) 评论(0) 推荐(0) 编辑
摘要: 解决方法:移除工程目录/.mvn/maven-wrapper.properties 文件即可 阅读全文
posted @ 2020-10-10 19:22 路要一步一步走 阅读(866) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/qq_37675827/article/details/77978505 阅读全文
posted @ 2020-10-10 12:15 路要一步一步走 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/qq_18630487/article/details/107514568 阅读全文
posted @ 2020-10-09 13:47 路要一步一步走 阅读(6032) 评论(0) 推荐(0) 编辑
摘要: Mybatis逆向生成代码避免tinyint生成Boolean 1.tinyint长度设为2(不建议),对于is_delete类似字段,一位就够了 2.在链接数据库的url加 ?tinyInt1isBit=false" 会生成Byte,默认这个属性是true 阅读全文
posted @ 2020-10-09 12:25 路要一步一步走 阅读(632) 评论(0) 推荐(0) 编辑
摘要: 测试增强for循环是否需要判断为null 例1: public static void main(String[] args) { List<Object> list = null; for(Object s : list){ System.out.println("a"); } } 例2 publ 阅读全文
posted @ 2020-10-09 11:00 路要一步一步走 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/qlqwjy/p/10551283.html 阅读全文
posted @ 2020-10-09 10:28 路要一步一步走 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 81 下一页