Mybatis中如何使用in查询 简单使用教程

很简单,例如daoList<Map> findByYear(List<Integer> yearList,@Param("yearOldList") List<Integer> yearOldList);xml <select id="findByYear" resultType="java.util.Map"> SELECT * from my_data where year in <foreach collection="yearOldList" item="year" index="index" open="(" close=")" separator=","> #{year} </foreach> </select>item需要和#{}里值一致,在多个参数情况collection与List别名一致,如果是一个参数的话collection默认填list就行。但是如果多个参数填list的话就会报错Parameter 'list' not found. Available parameters are [0, yearOldList, param1, param2]从报错中可以看出collection可以填别名、param1(代表第一个参数)、param2(代表第二个参数),但是还是建议在多参数时用别名

各种前端代码生成/可视化设计工具

magicalcoder:http://bbs.magicalcoder.com/Bootstrap可视化布局:https://www.bootcss.com/p/layoutit/vue schema生成:https://form.lljj.me/schema-generator.html

Windows根据PID获取程序路径

若想根据端口号获得进程号请参考前贴:Windows/Linux根据端口结束进程与根据端口找到程序位置根据pid获取程序:wmic process get name,executablepath,processid|findstr pid号