struts指定多个配置文件

2017-11-08  本文已影响9人  吐痰高手

直接上代码

struts.xml:

<struts>
    <include file="helloworld.xml"></include>
    <include file="/a/b/c/helloworld.xml"></include>
</struts>

其中的helloworld.xml/a/b/c/helloworld.xml文件就是正常的struts配置文件,里面也有struts标签等,也要有xml的约束声明

上一篇 下一篇

猜你喜欢

热点阅读