struts1.2如何配置多个struts-config.xml

网友投稿 795 2022-10-07

struts1.2如何配置多个struts-config.xml

struts1.2如何配置多个struts-config.xml

action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml, /WEB-INF/struts-config-file.xml, /WEB-INF/system/struts-config-user.xml, /WEB-INF/system/struts-config-org.xml, /WEB-INF/system/struts-config-role.xml, /WEB-INF/system/struts-config-fluxbasic.xml, /WEB-INF/system/struts-config-area.xml, /WEB-INF/system/struts-config-flux.xml, /WEB-INF/system/struts-config-sysblock.xml, /WEB-INF/data/struts-config-data.xml, /WEB-INF/data/struts-config-blockreport.xml, /WEB-INF/data/sturts-config-reguserinfo.xml, /WEB-INF/data/struts-congif-basicdata.xml, /WEB-INF/data/struts-config-blackdata.xml, /WEB-INF/data/struts-config-interface.xml, /WEB-INF/data/struts-config-regreport.xml, /WEB-INF/data/struts-config-datareport.xml, /WEB-INF/system/struts-config-monitor.xml, /WEB-INF/system/struts-config-property.xml debug 2 detail 2 1

struts1.2如何配置多个struts-config.xml

一 分模块的 在 web.xml里面 这样配置就行了

========================================================= 二 直接的

action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml, /WEB-INF/struts-config1.xml, /WEB-INF/struts-config2.xml 1

============================= 三 参数化的 我说还有简单的 在web-inf下配置若干个Strut-config文件 然后在web.xml配置文件中用通配符* 例如:

action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config*.xml config/test /WEB-INF/struts-test-config.xml

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:VuePress做出个人网页(vue写网站)
下一篇:做一个移动端微信公众号(附代码)(移动端编辑公众号)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~