上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 35 下一页
摘要: 设置时效:1分钟HttpSession session=ServletActionContext.getRequest().getSession(true); session.setAttribute("random", random); session.setMaxIn... 阅读全文
posted @ 2014-07-15 16:28 行云有影 阅读(143) 评论(0) 推荐(0) 编辑
摘要: int Num=new Random().nextInt(10)+1;new Random().nextInt(10)产生的是0-9的随机数new Random().nextInt(11)产生的是0-10的随机数) 阅读全文
posted @ 2014-07-15 15:54 行云有影 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Linux下开启MySQL的远程连接基于安全考虑root账户一般只能本地访问,但是在开发过程中可能需要打开root的远程访问权限。下面是基本的步骤:1、登录到mysql中,为root进行远程访问的授权,执行下面的命令:mysql> GRANT ALL PRIVILEGES ON *.* TO roo... 阅读全文
posted @ 2014-07-10 00:04 行云有影 阅读(2908) 评论(0) 推荐(0) 编辑
摘要: 1、VPSMate安装# wget http://www.vpsmate.org/tools/install.py# python install.py2、安装好了VPSMate后,还要安装IUS源,执行以下命令(注意版本):yum -y install gccyum -y install gcc-... 阅读全文
posted @ 2014-07-09 11:24 行云有影 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 1在src下面新建file名为log4j.properties内容如下:# Configure logging for testing: optionally with log filelog4j.rootLogger=WARN, stdout# log4j.rootLogger=WARN, std... 阅读全文
posted @ 2014-06-26 13:14 行云有影 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1、使用?通配符public User validate(String userName, String password) { String hql = "from User u where u.userName = ? and u.password = ?"; Use... 阅读全文
posted @ 2014-06-26 13:10 行云有影 阅读(998) 评论(0) 推荐(0) 编辑
摘要: 1、现在有优惠券Coupon表,用户User表和一张希望可以保存用户对优惠券是否使用信息的表User.classpackage com.life.hibernate.bean;import java.util.ArrayList;import java.util.List;import javax.... 阅读全文
posted @ 2014-06-21 22:08 行云有影 阅读(2203) 评论(0) 推荐(0) 编辑
摘要: 用法;intent intent = new Intent();intent.addFlag(Intent.FLAG_ACTIVITY_CLEAR_TOP);startActivity(intent); 阅读全文
posted @ 2014-06-18 20:56 行云有影 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 1、跳到webroot下的某个jsp文件 用户管理2、嵌套struts2标签">添加Done! 阅读全文
posted @ 2014-06-04 12:36 行云有影 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1、import java.util.List;import android.os.Parcel;import android.os.Parcelable;/** * 1)writeToParcel 方法。该方法将类的数据写入外部提供的Parcel中。 * 2)describeContents方法。... 阅读全文
posted @ 2014-05-30 22:13 行云有影 阅读(924) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 35 下一页