java - Servlet abnormal invoking -
i have servlet:
@webservlet ("/*") public class x extends httpservlet { @override protected void doget(httpservletrequest req, httpservletresponse resp) throws servletexception, ioexception { system.out.println("1"); } }
i cannot figure out why prints "1" twice. can explain that?
output:
1
1
you can print out
request.getrequesturi()
to confirm urls 2 requests.
Comments
Post a Comment