随笔分类 -  MyBatis

后端查询
摘要:1、批量更新update 2、批量插入insert 阅读全文
posted @ 2019-08-15 09:40 一叶之灵 阅读(2778) 评论(0) 推荐(0)
摘要:MySQL:select * from table where ctime >= CURDATE() and ctime <DATE_SUB(CURDATE(),INTERVAL -1 DAY); XML: <select id="selectByUidToday" parameterType="j 阅读全文
posted @ 2019-08-15 09:39 一叶之灵 阅读(304) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-11-24 12:56 一叶之灵 阅读(599) 评论(0) 推荐(0)
摘要:Mybatis-generator插件 1、下载地址 https://github.com/mybatis/generator/releases mybatis-generator是一款在使用mybatis框架时,自动生成model,dao和mapper的工具。 2、Eclipse配置mybatis 阅读全文
posted @ 2018-10-29 17:46 一叶之灵 阅读(4215) 评论(0) 推荐(0)