我学习jsp。我对 jsp 中的 isThreadSafe 属性有很大的困惑。默认情况下,Jsp 不是线程安全的isThreadSafe= true
如果我们设置isThreadSafe=false
意味着 JSP 引擎确保一次只有一个线程正在执行您的 JSP。
我对真假感到困惑。isThreadSafe = false
表示只有多线程可以通过isThreadSafe访问jsp
isThreadSafe 是什么意思
The isThreadSafe option marks a page as being thread-safe.
By default, all JSPs are considered thread-safe. If you set the isThreadSafe option to false, the JSP engine makes sure that only one thread at a time is executing your JSP.
The following page directive sets the isThreadSafe option to false:
<%@ page isThreadSafe="false" %>
线程安全意味着多个线程一次不能访问jsp页面是否正确?