http protocol

References documentation for http protocol

Dubbo http protocol is base on HTTP form and Spring’s HttpInvoker


  • Number of connections: multiple connections
  • Connection: short connection
  • Transmission protocol: HTTP
  • Transmission: synchronous transmission
  • Serialization: form serialization
  • Scope of application: Available browser view, the form or URL can be passed parameters, Temporary files are not supported.
  • Applicable scenarios: Services that need to be available to both application and browser


  • Parameters and return values must be consistent with Bean specifications


configure http protocol:

<dubbo:protocol name="http" port="8080" />

configure Jetty Server (default):

<dubbo:protocol ... server="jetty" />

configure Servlet Bridge Server (recommend):

<dubbo:protocol ... server="servlet" />

configure DispatcherServlet:


Note that if you use servlets to dispatch requests:

  • the port of protocol <dubbo:protocol port="8080" /> must same as servlet container’s.
  • the context path of protocol <dubbo:protocol contextpath="foo" /> must same as servlet application’s.

Last modified December 22, 2020: clean up website (6e41905afab)