표현식 와이어링 SpEL

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SqELTest {
	public static void main(String[] args) {
		ApplicationContext ctx 
			= new ClassPathXmlApplicationContext("/wiring/spel/ApplicationContext.xml");
		Prop prop = (Prop) ctx.getBean("prop");
		System.out.println("값은 : " + prop.getStr());
	}
}
public class Prop {
	private String str;
	public void setStr(String str) {
		this.str = str;
	}
	public String getStr() { 
		return str;
	}
}
<bean id="prop" class="wiring.spel.Prop">
		<property name="str" value="롱길롱"/>
</bean>