I found a problem today: I used <!-- --> comment in the jsp code, refreshed the page, and found that the page was deformed; but with <%-- --%> commented, refreshed the page, and found that the page was not deformed; I felt ignorant at that time. forced.
I don't know exactly why;
<%-- --%> is the server-side comment code;
<!-- --> is the client comment code;
When we review the source code in the browser, the content of the <%-- --%> tag is completely invisible, while the content of the <!-- --> tag can not only be seen, but also the content inside. will be parsed.
I asked a colleague in the company and said; if you want to comment some code, the comment with Ctrl+Shift+/ is standard.
Note: The jsp tag under the <!-- --> comment will still be parsed
Reprinted from: https://blog.csdn.net/u013456370/article/details/52402149