dubbo
dubbo copied to clipboard
resolvePackagesToScan modify function
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 hope to modify the resolvePackagesToScan function in the ServiceAnnotationPostProcessor class information to
private Set<String> resolvePackagesToScan(Set<String> packagesToScan) {
Set<String> resolvedPackagesToScan = new LinkedHashSet<>(packagesToScan.size());
for (String packageToScan : packagesToScan) {
if (StringUtils.hasText(packageToScan)) {
String resolvedPackageToScan = environment.resolvePlaceholders(packageToScan.trim());
resolvedPackageToScan=resolvedPackageToScan.replace(",",";");
resolvedPackageToScan=resolvedPackageToScan.replace("\t",";");
resolvedPackagesToScan.addAll(Arrays.asList(resolvedPackageToScan.split(";")));
}
}
return resolvedPackagesToScan;
}
Related issues
No response
Are you willing to submit a pull request to fix on your own?
- [X] Yes I am willing to submit a pull request on my own!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Why? packagesToScan is a collection now.
Why?
packagesToScanis a collection now.
I think, he want to resolve the special characters.