首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

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

2012-08-26 
web.xml启动struts2配置两点注意注意1:StrutsPrepareAndExecuteFilter中的init()方法会在服务器启动的时候

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

注意1:

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

注意2:

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

热点排行
Bad Request.