servlet中web.xml配置时间:2023-03-08 20:09:28 常见的Servlet中url-pattren的配置 1.固定配置, 如:/hi 引入通配符 * 2.以"/XXX"开头,以“*”结尾 3.以“*”开头,以“.XXXX”结尾 4.注意:不能以“/XXX”开头,以“*.XXXX”结尾 不能这么干:<!-- <url-pattern>/h/*.action</url-pattern> -->