直接上xml里的代码:
<!--声明有哪些Servlet--> <servlet> <servlet-name>Book</servlet-name> <servlet-class>com.ou.book.web.BookList</servlet-class> </servlet> <!--绑定请求地址--> <servlet-mapping> <servlet-name>Book</servlet-name> <url-pattern>/Book</url-pattern> </servlet-mapping>
示例:
结果: