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