避免在 Web 模块欢迎文件名中使用 /

此规则会标记 web.xml 文件中以正斜杠字符 (/) 或反斜杠字符 (\) 开头的任何 Web 模块 <welcome-file>

在源扫描程序中,为此规则提供了快速修订。 快速修订会从名称中移除 / 或 \。

给定以下欢迎文件列表:
<welcome-file-list>
<welcome-file>/index.html</welcome-file>
<welcome-file>\index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>/default.html</welcome-file>
<welcome-file>\default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>

该快速修订会将代码的四个条目更新为:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>