您好,欢迎来到百坡娱乐网。
搜索
您的当前位置:首页jsp计数器-bean文件_MySQL

jsp计数器-bean文件_MySQL

来源:百坡娱乐网


计数器

  import java.io.Serializable;

public class Counter implements Serializable{

// Initialize the bean on creation
int count = 0;

// Parameterless Constructor
public Counter() {

}

// Property Getter
public int getCount() {

// Increment the count property, with every request
count++;

return this.count;
}

// Property Setter
public void setCount(int count) {

this.count = count;
}
}

Copyright © 2019- bpwb.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务