apache / apache/dubbo-website

dubbo-spring-boot-starter 版本2.7.8 dubbo.scan.base-packages无法注入多个服务

Open
#2,769 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
491
Forks
809
Avg merge
1d 6h
Merged PRs (30d)
6

Description

配置dubbo包扫描。用如下方式都不能注入成功多个服务,还请帮助下,如何能注入多个dubbo服务,谢谢。
方法一:
dubbo:
scan:
base-packages:
- package1
- package2
方法二:
@EnableDubbo(scanBasePackages = {"package1","package1"})
方法三:
@DubboComponentScan(basePackages = {"package1","package1"})

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported multi-service scan with dubbo.scan.base-packages, @EnableDubbo(scanBasePackages), and @DubboComponentScan(basePackages). Check whether distinct package names are used and capture the startup or injection error; done means multiple services are discovered and injected successfully, with the supported configuration documented or the defect isolated.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.