<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<servlet>
<servlet-name>ExampleServlet</servlet-name>
<servlet-class>com.example.ExampleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ExampleServlet</servlet-name>
<url-pattern>/example</url-pattern>
</servlet-mapping>
</web-app>
어노테이션
@webServlet("/MyServlet")

URI : 통합 자원 식별자, 인터넷 상의 자원을 식별하는데 사용
URL : 통합 자원 위치, 자원의 위치를 나타내는데 사용
URN : 통합 자원 이름, 자원에 대한 고유한 이름을 제공