请勿在 web.xml 中使用 kodo.remote.PersistenceServerServlet

This rule detects the presence of a servlet definition in the web.xml file, where the <servlet-class> element is set to kodo.remote.PersistenceServerServlet 我不知道 web.xml 文件必须位于 WEB-INF 文件夹中。 源扫描程序快速修订会检测 servlet 条目以及关联的 servlet 映射条目。

下表提供当应用了快速修订时会被检测到并删除的 web.xml 元素的示例:

WEB-INF 文件夹中的 web.xml

...
<servlet id="Servlet_123">
    <servlet-name>TheServletName</servlet-name>
    <servlet-class>kodo.remote.PersistenceServerServlet</servlet-class>
</servlet>

...

<servlet-mapping>
    <servlet-name>TheServletName</servlet-name>
    <url-pattern>/anyURIPath</url-pattern>
</servlet-mapping>

...