alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
27.95k stars 8.34k forks source link

spring cloud alibaba dubbo seems to have to rely on actuator #663

Open BoyK opened 5 years ago

BoyK commented 5 years ago

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 We recommend using English. If you are non-native English speaker, you can use the translation software.

Which Component spring cloud alibaba dubbo

Describe the bug Field dubboMetadata in org.apache.dubbo.spring.boot.actuate.endpoint.DubboMetadataEndpoint required a bean of type 'org.apache.dubbo.spring.boot.actuate.endpoint.metadata.DubboMetadata' that could not be found. The injection point has the following annotations:

To Reproduce Steps to reproduce the behavior:

  1. I wrote a demo using spring-cloud-starter-dubbo & spring-cloud-starter-zookeeper-discovery.
  2. Start after the official sample configuration is complete.
  3. Abnormal information appears above.
  4. Run again after adding spring-boot-starter-actuator. 5.The demo started normally.

Additional context Add any other context about the problem here. spring cloud alibaba 0.9.0.RELEASE

fangjian0423 commented 5 years ago

We will optimize it soon.

LennyLzy commented 5 years ago

I try to run the official demo and have the same problem with Nacos discovery `Field dubboMetadata in org.apache.dubbo.spring.boot.actuate.endpoint.DubboMetadataEndpoint required a bean of type 'org.apache.dubbo.spring.boot.actuate.endpoint.metadata.DubboMetadata' that could not be found. The injection point has the following annotations:

kennywgx commented 5 years ago

I got a same problem @fangjian0423 Do you have any ideas?

fangjian0423 commented 5 years ago

add actuator dependency can solve it:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
ChenBaiHong commented 4 years ago

yes ! me too,

cnodin commented 4 years ago

add actuator dependency can solve it:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

hello, i add the actuator dependency, the problem cann't be solved.