Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1. 模块描述
实现Spring的JavaConfig配置方式,使用
Main.main(args)
(需传参javaconfig
设置使用JavaConfigContainer) 启动时可直接扫描bubbo.spring.javaconfig
包下的所有的Spring配置类2. 使用示例
使用示例在dubbo-demo/dubbo-demo-consumer模块中,相关配置方式参考注解配置
2.1 代码解释
dubbo-demo-consumer/../DubboDemoConsumerConfig
等同于dubbo-demo-consumer/../dubbo-demo-consumer.xml
dubbo-demo-consumer/../DubboDemoActionConfig
等同于dubbo-demo-consumer/../dubbo-demo-action.xml
dubbo-demo-consumer/../DemoJavaConfigAction
等同于dubbo-demo-consumer/../DemoAction
dubbo-demo-consumer/../DemoJavaConfigConsumer
以JavaConfig方式启动示例程序2.2 示例演示
3. 去xml化配置
将xml配置方式转换为Java类配置,未涉及到的配置,请参照API配置实现