以下类型的struts2网址格式有什么区别?
<url-pattern>*.do</url-pattern>
<url-pattern>/struts/*</url-pattern> and <url-pattern>/*</url-pattern> ?
答案 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/