After understanding it, you know that the original servlet is as simple! Below is the simplest servlet configuration (web.xml) Controm.wc servlet-name> // Today specifies the name of the servlet This name likes you like, as long as you don't repeat the web.controller.controller servlet-class> // The package path and name of the servlet class here, pay attention to the case servlet> The following two lines configuration The role is to tell the web container, hand it over to the servlet called when requesting the path request in . contORLLER.WC servlet-name> /contorller.wc url-pattern> servlet-maping> If your web project is passed by localhost: 8080 /Web/index.jsp, then add the above servlet configuration, enter localhost: 8080 / web / contorler.wc in the IE address bar, the web container will inspire specified servlet. Handling this request. If you have any wrong, please correct it.