![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
Cike9588
一箪食一斗酒一曲长歌一剑天涯。
展开
-
hql语句变量问题
直接上代码:1、getSession().createQuery("from Login where logName = '"+login.getLogName()+"'").list();2、getSession().createQuery("from User where name like '%" + user.getName() + "%'").list();总结:where语句中变量写法是原创 2016-10-12 12:29:28 · 1496 阅读 · 0 评论 -
mybatis中模糊查询的sql语句
<select id="goodsList" parameterType="goods" resultMap="goodsResult"> select * from ssm_goods <where> <if test="text_find != null and text_find != ''">原创 2017-05-03 15:24:08 · 3794 阅读 · 0 评论 -
路径问题
1、电脑文件夹路径这种格式:d:\工作\记录2、其它一般是:other/setIp.bat3、另: //相对位置 String cmd = "other/setIp.bat"; //绝对位置(此处是\\) String cmd = "G:\\setIp.bat";原创 2017-05-15 16:01:59 · 222 阅读 · 0 评论 -
zxing实现二维码的生成和解析
/** * 生成二维码 * @author Administrator * */public class CreatQRCode { public static void main(String[] args) { // 设置图片的长度和宽度 int width = 300; int height = 300; // 图原创 2017-07-17 12:56:46 · 436 阅读 · 0 评论 -
Java获取某个日期前后几天日期
转自:http://blog.csdn.net/leegh1992/article/details/51484074public static void main(String[] args) { // 时间表示格式可以改变,yyyyMMdd需要写例如20160523这种形式的时间 SimpleDateFormat sdf = new SimpleDateFor转载 2018-01-24 11:15:32 · 3771 阅读 · 0 评论