开发者

Spring-MVC: Disabling comments in view output?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜