gpt4 book ai didi

java - ServletWebServer还是WebServer?

转载 作者:太空宇宙 更新时间:2023-11-04 08:58:47 24 4
gpt4 key购买 nike

使用有什么好处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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com