http://xx.com/webapp/fdsafhdkasl/index.action http://xx.com/webapp/index.action 上面两种方式都能匹配到action,如何静止第一种模糊匹配方式,只能第二种匹配?
创建struts.properties文件,放在classes路径下就行,增加struts.mapper.alwaysSelectFullNamespace=true设置,默认是fasle,为true时表示禁止递减匹配namespace也可以在struts.xml文件中增加配置:<constant name="struts.mapper.alwaysSelectFullNamespace" value="true" />
创建struts.properties文件,放在classes路径下就行,增加struts.mapper.alwaysSelectFullNamespace=true设置,默认是fasle,为true时表示禁止递减匹配namespace
也可以在struts.xml文件中增加配置:
<constant name="struts.mapper.alwaysSelectFullNamespace" value="true" />