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

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


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

  2. ContextClass: 创建WebApplicationContext的类型

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

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

原文地址:https://www.cnblogs.com/shugen/p/6862998.html