feat: 清理代码

This commit is contained in:
wangyu 2023-09-19 21:33:24 +08:00
parent 598395c81f
commit 5ea8feb718

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) {