2.0에 새로 추가 된 Bean의 Scope들로 request, session, global session이 있습니다. 그리고 이 Scope들은
웹에서 사용하도록 만들어진 것이기 때문에 web-based applicationContext에서만 사용할 수 있습니다. 안그러면
IllegalStateException 이게 발생합니다.
web-based applicationContext 란?
WebApplicationContext 인터페이스를 구현한 클래스들로 다음과 같습니다.
AbstractRefreshablePortletApplicationContext
[http://static.springframework.org/spring/docs/2.0.x/api/org/