2013年12月8日星期日

About a servlet web.xml file configuration problem

The following code in the web.xml file:

sampleSpringMVC
org.springframework.web.servlet.DispatcherServlet
1



sampleSpringMVC
*. htm

After
start tomcate, the information can be displayed on the page . .. But if I put into the ninth sentence * htm * jsp after they prompt :

HTTP Status 404 -
description: The requested resource is not available.




error message like this, I ask , how is this all about ?







------ Solution ------------------------------------ --------
program may be limited only by the hml it
------ For reference only in the system configuration file ----------- ----------------------------
*. htm mean only match *. htm pages to pass the request , you can write
/ * try , one more thing to ensure is that you visit the website must exist , for example :
http://localhost:8080/ application name / a.jsp, a.jsp pages in this project must exist

没有评论:

发表评论