还有web.xml是tomcat启动加载的对吗

问题补充:

如果配置成<load-on-startup>1</load-on-startup>说明什么呢
 
 
tomcat启动时加载web.xml,以及web.xml中配置的其他配置文件,包括struts-config.xml 
<load-on-startup>是用来设置servlet自动加载的
 
 
web.xml是在tomcat启动加载
/WEB-INF/struts-config.xml 需要在web.xml中配置, 
 
 
是在tomcat启动时加载,tomcat加载部署在其下的应用时会加载应用对应的web.xml及struts-config.xml等配置文件 
 
在tomcat启动的时候加载 你要是有struts的源码 你可以研究一下ActionServlet的init方法就知道了,在那里面执行加载的 

相关文章:

  • 2021-06-28
  • 2022-01-27
  • 2021-12-10
  • 2021-09-12
  • 2021-06-14
  • 2022-12-23
猜你喜欢
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
相关资源
相似解决方案