mapping servlet to serve my requests
问题 I would like to map a servlet to serve the requests that includes 'app' and ends with *.html in the following way <url-pattern>/app/*.html</url-pattern> but on running the application it gives me an error java.lang.IllegalArgumentException: Invalid <url-pattern> /app/*.html in servlet mapping please help me to map that. And please provide me the links where I can learn about these url mapping rule and conventions. 回答1: This is indeed invalid. The wildcard has to be the first or the last