Rules for mapping names of web application servlets and request process

I saw an article today, which was written in great detail, and was specially shared, hoping to help friends in need.

 

<servlet-name> This is the name of the servlet we want to register, which is generally related to the servlet class name. 
<servlet-class> This is the class address pointing to the servlet we want to register, with the package path . The
above two packages are in a servlet node. Next.

<servlet-mapping> is used to configure the access path of the component we registered, which includes two nodes,
one is <servlet-name>, which is the same as the servlet written earlier, and the
other is <url-pattern> to configure this component access path

 

Path: https://www.cnblogs.com/fnz0/p/5586019.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324539404&siteId=291194637