⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threadbean.java

📁 是关于struts+hibernate+spring开发宝典的源代码,希望对大家有帮助,
💻 JAVA
字号:
package cn.hxex.springcore.scope;

/*
 * 自定义作用域的测试Bean
 */
public class ThreadBean {

	// 状态属性
	private int status = 0;
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public void display() {

		StringBuffer buf = new StringBuffer();
		buf.append( "Thread " ).append( Thread.currentThread().getId() );
		buf.append( " Status:\t" ).append( getStatus() );
		System.out.println( buf.toString() );
	
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -