Skip to content
\n

When the tri protocol uses the same port number as spring.server.port, the consumer call will fail.error:

\n
2025-09-24T19:41:50.862+08:00 ERROR 25776 --- [dubbo-spring-consumer] [io-60052-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.apache.dubbo.rpc.RpcException: java.util.concurrent.ExecutionException: org.apache.dubbo.rpc.StatusRpcException: UNIMPLEMENTED : invalid content-type: application/json] with root cause\n
\n

Is this by design?

\n

I'd like to reduce the number of ports, and it would be great if Dubbo service calls could reuse Spring ports.
\nI've searched extensively but haven't found any similar information. Currently, do Spring and Dubbo support this level of seamless integration? Or do I need to separate the port numbers?

\n

Thanks

\n

Code of Conduct

\n","upvoteCount":2,"answerCount":5,"acceptedAnswer":{"@type":"Answer","text":"

Please add dependency and retry.

\n
<dependency>\n        <groupId>org.apache.dubbo</groupId>\n        <artifactId>dubbo-spring-boot-3-autoconfigure</artifactId>\n</dependency>\n
","upvoteCount":1,"url":"https://github.com/apache/dubbo/discussions/15706#discussioncomment-14507820"}}}
Discussion options

You must be logged in to vote

Please add dependency and retry.

<dependency>
        <groupId>org.apache.dubbo</groupId>
        <artifactId>dubbo-spring-boot-3-autoconfigure</artifactId>
</dependency>

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pedoc
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pedoc
Comment options

@pedoc
Comment options

Answer selected by pedoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants