这个TomCat init参数设置到底是做什么的? (修剪空间设置为真)

What exactly do this TomCat init patameter setting? (trimSpaces setted on true)

我正在为我必须工作的产品设置开发环境。

进入教程我发现它说我必须修改 TomCat web.xml 配置文件将这些行添加到 部分:

<init-param>
    <param-name>trimSpaces</param-name>
    <param-value>true</param-value>
</init-param>

这个设置具体是做什么的?

Tnx

我的理解是这是一个嵌套在

中的参数
<servlet>
     <servlet-name>jsp</servlet-name>
     <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
     <init-param>
         <param-name>fork</param-name>
         <param-value>false</param-value>
     </init-param>
     <init-param>
         <param-name>xpoweredBy</param-name>
         <param-value>false</param-value>
     </init-param>
     <init-param>
         <param-name>trimSpaces</param-name>
         <param-value>true</param-value>
     </init-param>
     <load-on-startup>3</load-on-startup>
 </servlet>

根据教程 -

"If you wish, you can modify Tomcat's settings to reduce the amount of white space in HTML that is created from JSPs (Java Server Pages). White space is controlled by the trimSpaces parameter in the JSP compiler."