struts2_ Is struts 2 thread safe?
•
Java
Thread safety: multiple threads execute concurrently in a process. During thread execution, the variable values are the same and the execution results are the same
Struts 2 thread safety
1. Each request will recreate a new action object, so it is thread safe
2. Since the action class is formed by struts reflection, the action class should have a public parameterless constructor
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
二维码