apache / dubbo-spring-boot-project

Spring Boot Project for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
5.41k stars 1.88k forks source link

rest protocol springboot starter not worked #418

Closed morisenmen closed 5 years ago

morisenmen commented 5 years ago

when i use dubbo-spring-boot-starter:0.2.1 and springboot 2.1.1 with dubbo 2.6.5 use rest protocol.I got this error: An attempt was made to call the method org.apache.catalina.connector.Connector.setProtocol(Ljava/lang/String;)V but it does not exist. Its class, org.apache.catalina.connector.Connector, is available from the following locations: but it can be work fine at dubbo-spring-boot-starter:0.2.1 and springboot 2.1.8 with dubbo 2.6.5 use rest protocol. I can see that springboot 2.1.0 upgrade tomcat-embed version to 9,it can be fine at tomcat-embed in version 8.x.

mercyblitz commented 5 years ago

please switch dubbo-spring-boot-autoconfigure:

        <dependency>
            <groupId>com.alibaba.boot</groupId>
            <artifactId>dubbo-spring-boot-autoconfigure</artifactId>
            <version>0.2.1</version>
        </dependency>
sylartp commented 5 years ago

@mercyblitz hi, i still have the same problem after i switch to this dependency.