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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -