Struts中扫描包的层数问题

来源:互联网 发布:solive韩国网络电视 编辑:程序博客网 时间:2024/06/05 07:52

 

Struts总配置文件在扫描Struts组件的时候常常采用include方法,那么需要注意一些问题。

 

看这个include

<include file="configs/struts/*/*.xml"></include>

 

可以扫描到的是       config.struts.xy.student.xml

不可以扫描到的是   config.struts.studnet.xml

因为struts下面还有一个/*,表示还有一层。