Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

在测试的时候如何关闭dubbo #90

Open
springAppl opened this issue Apr 9, 2018 · 2 comments
Open

在测试的时候如何关闭dubbo #90

springAppl opened this issue Apr 9, 2018 · 2 comments

Comments

@springAppl
Copy link

比如对应用测试到时候,只想要测试DAO层,spring中不需要实例化dubbo的相关配置。这时如何优雅让spring优雅的关闭dubbo,不实例化dubbo到相关配置

@springAppl
Copy link
Author

现在采用到方式是这样:
@EnableAutoConfiguration(exclude={DubboAutoConfiguration.class,DubboProviderAutoConfiguration.class, DubboConsumerAutoConfiguration.class})
有没有一种更好到方式,比如在配置文件中有类似到配置:
dubbo.enable:false之类到

@ylxs90
Copy link

ylxs90 commented Jun 21, 2018

我也想问这个问题,上面大佬给出的方法也不失优雅,但最好还是官方提供一个更简便的办法

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants