-1

以下类型的struts2 URL模式有什么区别?

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

1 回答 1

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/
于 2013-06-12T13:51:18.167 回答