首页  >  文章  >  数据库  >  cookie实现自动登陆(2)

cookie实现自动登陆(2)

WBOY
WBOY原创
2016-06-07 15:49:461370浏览

下面的是对 CookieUtil 工具类各方法的调用演示: User.java 封装用户信息的 JavaBean 对象模型 package com.itcast.bean; public class User { private int id; private String userName; private String password; public String getPassword() { return p

下面的是对CookieUtil工具类各方法的调用演示:

User.java

封装用户信息的JavaBean对象模型

package com.itcast.bean;

public class User {

       private int id;

      

       private String userName;

       private String password;

      

       public String getPassword() {

              return password;

       }

       public void setPassword(String password) {

              this.password = password;

       }

       public String getUserName() {

              return userName;

       }

       public void setUserName(String userName) {

              this.userName = userName;

       }

       public int getId() {

              return id;

       }

       public void setId(int id) {

              this.id = id;

       }

}

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn