constructinjectionbean.java

来自「是关于struts+hibernate+spring开发宝典的源代码,希望对大家」· Java 代码 · 共 22 行

JAVA
22
字号
package cn.hxex.springcore.injection;

public class ConstructInjectionBean {

	private AnotherBean anotherBean;
	private YetAnotherBean yetAnotherBean;
	private int i;
	
	public ConstructInjectionBean( AnotherBean anotherBean, YetAnotherBean yetAnotherBean, int i) {
		this.anotherBean = anotherBean;
		this.yetAnotherBean = yetAnotherBean;
		this.i = i;
	}
	
	public void display() {
		System.out.println( "ConstructInjectionBean:" );
		System.out.println( this.anotherBean );
		System.out.println( this.yetAnotherBean );
		System.out.println( i );
	}
}

⌨️ 快捷键说明

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