工程简介
常见错误
## 问题1 java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy
A:guava包冲突
## 问题2 dubboFilter 在客户端没有生效
A:需要服务提供者在发布的时候指定 <dubbo:consumer check="false" filter="dubboCustomerExtendsInvokeFilter,dubboConsumerFilter,dubboCustomerInvokeFilter"></dubbo:consumer>
## 问题3 META_INF文件 打包丢失
A: META_INF/dubbo 必须都是文件夹,分开单独创建。打包完毕后,去target目录确认下classes文件夹下是否包含META_INF文件夹
## 问题4:connection timeout
A: 21:18:10.563 [main] DEBUG org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@627551fb
21:18:32.458 [main] DEBUG org.springframework.beans.factory.xml.ResourceEntityResolver - Could not resolve XML entity [http://code.alibabatech.com/schema/dubbo/dubbo.xsd] through URL [https://code.alibabatech.com/schema/dubbo/dubbo.xsd]
java.net.ConnectException: Connection timed out: connect
A: dubbo2.7.5 不能排除spring-firework
## 问题5 :The bean 'dubboLifecycleComponentApplicationListener' could not be registered. A bean with that name has already been defined and overriding is disabled.
A: spring.main.allow-bean-definition-overriding=true
延伸阅读