No. this has nothing to do with the Java compiler.
I think it should be your servlet container such as Tomcat or resin do something on it.
I think it should be your servlet container such as Tomcat or resin do something on it.
tomcat\conf\web.xml:
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>/servlet/myservlet</url-pattern>
</servlet-mapping>
修改为:
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>/myservlet</url-pattern>
</servlet-mapping>
就可以了
http://yourname/MyWeb/myservlet