使用有什么好处 org.apache.xmlrpc.webserver.ServletWebServer 代替 或.apache.xmlrpc.webserver.WebServer 在 JAVA 中使用 XMLRPC 时?
我可以在 ServletWebServer 中使用返回基元类型数组或 null 的函数吗?
最佳答案
documentation sais ,如果您使用 ServletWebServer,您将有可能迁移到另一个基于 servlet 的 Web 服务器,例如 Tomcat。我没有体验到与 WebServer 父类(super class)相比的任何其他优势。
If you still insist in using the WebServer, it is recommended to use its subclass, the ServletWebServer instead, which offers a minimal subset of the servlet API. In other words, you keep yourself the option to migrate to a real servlet engine later.
关于java - ServletWebServer还是WebServer?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1443919/