如何修剪柯乔树脂上的空白区域



我正在尝试将此指令应用于我的服务器,但不确定在哪里添加它:

<jsp-property-group>
   <url-pattern>*.jsp</url-pattern>
   <trim-directive-whitespaces>true</trim-directive-whitespaces>
</jsp-property-group>

我正在使用树脂 4.0.35 专业版。

谢谢。

一般jsp-property-groupjsp-config的子代,jsp-config web-app的子代。把它放在你的web.xmlresin-web.xml

最新更新