Spring-web中的web.xml为Servlet提供的配置选项说明

配置Servlet时可以设置的一些初始化参数,总结如下:


  1. ContextAttribute: 在ServletContext的属性中,要用作WebApplicationContext的属性名称。

  2. ContextClass: 创建WebApplicationContext的类型

  3. ContextConfigLocation: SpringMVC配置文件的位置。

  4. publishContext: 是否将webApplicationContext设置到ServletContext的属性。

posted @ 2016-06-25 17:15  shugen  阅读(161)  评论(0编辑  收藏  举报