Java – dispatcher servlet spring and URL patterns

I'm new to the spring framework. Today I met web For the dispatcher servlet configuration in the XML file, I came up with a problem about the URL pattern, such as the syntax / So, if I deploy a web application in the Tomcat server, the "/" symbol actually applies to: host: port / or host: port / myweb/

Solution

Pattern / will make your servlet the default servlet for your application, which means that it will get every pattern that doesn't have an exact match

URL schema mapping:

Path mapping rules:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>