Issue 1:
[ x ] I have searched the issues of this repository and believe that this is not a duplicate.

[ x ] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.7

Operating System version: Mac Catalina 10.15.7 (19H2)

Java version: 1.8.0_231

SpringBoot: 1.5.9.RELEASE

Steps to reproduce this issue

基于spring boot 1.5.x搭建demo项目并编写测试controller

访问该测试controller，默认返回json格式的response

引用以下包：

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>2.7.7</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jersey2-jaxrs</artifactId>
<version>1.5.9</version>
</dependency>

重启demo项目并再次访问测试controller，这时会返回xml格式的response

Expected Result

引用swagger不改变spring boot的默认http message converter组织方式，不影响各接口的response格式。

Actual Result

引用swagger后改变了spring boot的默认http message converter组织方式，进而改变了各接口的response格式。

Trouble Shooting

dubbo rest集成了swagger，用到了相关的类，比如：io.swagger.jaxrs.listing.BaseApiListingResource。

因此必须引用 swagger-jersey2-jaxrs 包。

swagger-jersey2-jaxrs 包引用了 jackson-dataformat-xml包。

jackson-dataformat-xml内部的 XmlMapper类会改变SpringBoot的HttpMessageConverter组装过程，从而改变默认response格式。

Issue 2:
[ Y] I have searched the issues of this repository and believe that this is not a duplicate.

[ Y] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: windows 10 & centos 7.5

Java version: 1.8

Steps to reproduce this issue

start app

该问题有时候出现 有时候又不出现，暂时还没定位到问题。

看现有的issue和我有些不一样 如果每次都出现，那就很好处理了，50%的概率启动出现，url not found的报错，我看下来是，url没有注册进去，经常只有v1可用，s1不可用。

bootstrap：

protocols:

dubbo:

name: dubbo

port: 30881

http:

name: rest

port: 30991

server: netty

contextpath: biz

keepalive: false

extension: com.XXX.EirExceptionMapper

@path("s1")

@consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})

@produces({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})

public interface Facade1 {

}

@path("v1")

@consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})

@produces({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})

public interface Facade1 {

}

javax.ws.rs.NotFoundException: RESTEASY003210: Could not find resource for full path: http://localhost:30991/biz/s1/eirinfo?no=2020050784981002

at org.jboss.resteasy.core.registry.ClassNode.match(ClassNode.java:61)

at org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:47)

at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:442)

at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:300)

at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:221)

at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:135)

at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:355)

at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:138)

at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:215)

at org.jboss.resteasy.plugins.server.netty.RequestDispatcher.service(RequestDispatcher.java:83)

at org.jboss.resteasy.plugins.server.netty.RequestHandler.channelRead0(RequestHandler.java:51)

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38)

at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:353)

at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:163)

at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java)

at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:466)

at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)

at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)

at java.lang.Thread.run(Thread.java:748)