随笔分类 - MyBatis
后端查询
摘要:1、批量更新update 2、批量插入insert
阅读全文
摘要:MySQL:select * from table where ctime >= CURDATE() and ctime <DATE_SUB(CURDATE(),INTERVAL -1 DAY); XML: <select id="selectByUidToday" parameterType="j
阅读全文
摘要:JAVA: Calendar c = new GregorianCalendar(); log.error("c:"+c); c.set(Calendar.HOUR_OF_DAY,0); c.set(Calendar.MINUTE,0); c.set(Calendar.SECOND,0); c.se
阅读全文
摘要:Mybatis-generator插件 1、下载地址 https://github.com/mybatis/generator/releases mybatis-generator是一款在使用mybatis框架时,自动生成model,dao和mapper的工具。 2、Eclipse配置mybatis
阅读全文
浙公网安备 33010602011771号