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

来源:互联网 发布:sql server2008r2下载 编辑:程序博客网 时间:2024/05/29 19:23

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


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

  2. ContextClass: 创建WebApplicationContext的类型

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

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

0 0
原创粉丝点击