Java – request getRequestDispatcher(). Forward create a new thread?

I have a use case that schedules requests by setting some properties and pruning the request URL to the same context Will this be handled in the same thread or in a new thread?

Solution

It will be processed in the same thread Servlet specification state

This may seem like a suggestion, but most of the implementations I know are done in the same thread

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
分享
二维码
< <上一篇
下一篇>>