We can use system. Net in Java Web applications exit()

We are using java to develop web applications I want to use system. Com in one of my methods Exit() instead of return As far as I know, if I use it, the application will enter shutdown mode

Can anyone give me this advice?

Solution

Generally speaking, this is a very bad idea, but the rule of thumb is system Exit() closes the entire JVM

Your web application should be able to handle responses, not just suicide. I don't know a good way you want it to commit suicide

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>