随笔分类 -  Mybatis

摘要:1.当只有一个参数时且参数类型是List List<AnalysisInfo> listInfo(@Param("orderIds") List<Integer> orderIds);我这里对参数重命名为"orderIds",所以下面foreach中collection="orderIds",如果未 阅读全文
posted @ 2020-06-23 15:08 低调的小白 阅读(5672) 评论(0) 推荐(0) 编辑
摘要:推荐免费的ChatGpt,微信注册即可使用 扫描图片上的二维码即可使用 方案一 application.properties配置: logging.level.com,后面的路径指的是mybatis对应的方法接口所在的包。并不是mapper.xml所在的包。 1. logging.level.com 阅读全文
posted @ 2019-05-14 13:57 低调的小白 阅读(12427) 评论(0) 推荐(1) 编辑
摘要:Mybatis 中$与#的区别 转自:https://www.cnblogs.com/hellokitty1/p/6007801.html 1 #是将传入的值当做字符串的形式,eg:select id,name,age from student where id =#{id},当前端把id值1,传入 阅读全文
posted @ 2018-11-30 15:54 低调的小白 阅读(10504) 评论(0) 推荐(3) 编辑

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