floater
Java Jedi
总版主
发贴: 3233
积分: 421
|
于 2005-12-04 10:04
not sure I understand your question. In general, there is no need to get the ApplicationContext in the servlet container when using spring mvc. In rare cases, if needed, there are two ways to get it, one is using the utility class in Spring to get it from the webapplicationcontextutils class, another is to implement applicationcontextaware interface.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler, Refactoring - Improving the Design of Existing Code
|