dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[Feature] JAVA: How to disabled Dubbo on unittest

Open onepas opened this issue 1 year ago • 1 comments

Pre-check

  • [X] I am sure that all the content I provide is in English.

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

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?

  • [ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

onepas avatar Jun 27 '24 07:06 onepas

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

AlbumenJ avatar Jun 28 '24 02:06 AlbumenJ