当前位置: 代码迷 >> Web前端 >> web.xml起动struts2配置两点注意
  详细解决方案

web.xml起动struts2配置两点注意

热度:108   发布时间:2012-08-26 16:48:06.0
web.xml启动struts2配置两点注意

注意1

StrutsPrepareAndExecuteFilter中的init()方法会在服务器启动的时候读取类路径下默认的配置文件struts.xml完成初始化操作

注意2

struts2读取到struts.xml里面的内容后,以javabean的形式存放到内存中去,以后struts2对用户的每次请求处理将使用内存中的数据,而不是每次都去读取struts.xml

  相关解决方案