配置spring:
contextConfigLocation
/WEB-INF/applicationContext.xml
org.springframework.web.context.ContextLoaderListener
dispatcher
org.springframework.web.servlet.DispatcherServlet
2
[b]问题:[/b]使用listener的org.springframework.web.context.ContextLoaderListener和使用servlet的org.springframework.web.servlet.DispatcherServlet有什么区别? 他们分别用在什么情况下?
我要用spring的MVC,我看到的代码,似乎没有listen也可以。但是[b]仅有listen也可以使用它的MVC吗[/b]?
Thank you !