Create a daemon in the web container

xiaoxiao2021-03-06  100

Write a servlet, this servlet contains a class that extends Thread.

Set to true using thread class setDaemon (boolean on)

Starting with Web Container and starts in Web.xml

Your servlet name

Your servlet class

1

The 1 representative of there started, if you have multiple servlets to start, the more the numbers are getting started before. . . .

转载请注明原文地址:https://www.9cbs.com/read-106727.html

New Post(0)