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.
精彩评论