Servlet 특징
맵핑
http://localhost:8080/hello(프로젝트명)/servlet/com.test.ex.hello
http://localhost:8080/hello(프로젝트명)/he
맵핑 방법
1. web.xml에서 서블릿 맵핑
<servlet>
<servlet-name>helloServlet</servlet-name>
<servlet-class>com.test.ex.Hello</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>helloServlet</servlet-name>
<url-pattern>/he</url-pattern>
</servlet-mapping>
@WebServlet("/He")
public class Hello extends HttpServlet {
...
}