Merge remote-tracking branch 'origin/main'

This commit is contained in:
wangyu 2023-12-07 18:30:10 +08:00
commit 517f9403c2

View File

@ -74,8 +74,6 @@ public class RestApiRegistry implements BeanDefinitionRegistryPostProcessor, Bea
// 初始化反射
try {
RestServiceComponentProvider scanner = new RestServiceComponentProvider();
scanner.resetFilters(false);
scanner.addIncludeFilter(new AnnotationTypeFilter(RestService.class));
// 获取扫描器的ClassLoader保证同源
ClassLoader cl = scanner.getClass().getClassLoader();
for (String packageName : packageNames) {