web.xml配置servlet:
<servlet>
<servlet-name>Servlet1</servlet-name>
<servlet-class>Package1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Servlet1</servlet-name>
<url-pattern>/myweb/Servlet1</url-pattern>
</servlet-mapping>
求路过大神看下web.xml配置有问题吗??
但是浏览器访问http://localhost:8080/myweb/Servlet1
摆脱,不是myweb的问题好吗,@代码宇宙,是servlet-class----->包.类(他只写了包) 大兄弟