开发者

Spring-MVC: Disabling comments in view output?

开发者 https://www.devze.com 2023-02-28 02:14 出处:网络
In JSF i can disable rendering comments in view by settin开发者_JAVA技巧g javax.faces.FACELETS_SKIP_COMMENTS context-param. Is something similar in Spring-MVC i can use ?This is a feature of the rende

In JSF i can disable rendering comments in view by settin开发者_JAVA技巧g javax.faces.FACELETS_SKIP_COMMENTS context-param. Is something similar in Spring-MVC i can use ?


This is a feature of the rendering toolkit you use, not a feature of the MVC Framework.

  • If you have JSP comments (<%-- --%>), then will be "removed" by default.
  • If you use JSPX (not JSP) the HTML comments <!-- --> will be removed by default too.
0

精彩评论

暂无评论...
验证码 换一张
取 消