web.xml 内に
org.springframework.web.context.ContextLoaderListener
を定義し、構成ファイルの位置とロードビーン定義をします。
<context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>