struts URL模式类型之间的区别?

时间:2013-06-12 13:49:23

标签: struts2

以下类型的struts2网址格式有什么区别?

<url-pattern>*.do</url-pattern>     
<url-pattern>/struts/*</url-pattern> and <url-pattern>/*</url-pattern> ?

1 个答案:

答案 0 :(得分:0)

<url-pattern>/*</url-pattern>  // for all requests

<url-pattern>*.do</url-pattern>  // for all requests which contains extinction .do

<url-pattern>/struts/*</url-pattern> // for all contains path like struts/