apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.41k stars 26.42k forks source link

[Feature] JAVA: How to disabled Dubbo on unittest #14375

Open onepas opened 3 months ago

onepas commented 3 months ago

Pre-check

Search before asking

Apache Dubbo Component

Java SDK (apache/dubbo)

Descriptions

I want to exclude Dubbo, I tried but not work.

@EnableAutoConfiguration(exclude= {
        DubboAutoConfiguration.class,
        DubboListenerAutoConfiguration.class,
        DubboRelaxedBindingAutoConfiguration.class,
        DubboObservationAutoConfiguration.class,
        DubboMicrometerTracingAutoConfiguration.class,
        DubboRelaxedBinding2AutoConfiguration.class,
        WebMvcObservationAutoConfiguration.class
})

Related issues

No response

Are you willing to submit a pull request to fix on your own?

Code of Conduct

AlbumenJ commented 3 months ago

We have many entrypoint for Spring and it is really hard to exclude all. I would recommend you to configure dubbo.registry.address=N/A and dubbo.consumer.check=false