feat: 清理代码
This commit is contained in:
parent
598395c81f
commit
5ea8feb718
@ -74,8 +74,6 @@ public class RestApiRegistry implements BeanDefinitionRegistryPostProcessor, Bea
|
|||||||
// 初始化反射
|
// 初始化反射
|
||||||
try {
|
try {
|
||||||
RestServiceComponentProvider scanner = new RestServiceComponentProvider();
|
RestServiceComponentProvider scanner = new RestServiceComponentProvider();
|
||||||
scanner.resetFilters(false);
|
|
||||||
scanner.addIncludeFilter(new AnnotationTypeFilter(RestService.class));
|
|
||||||
// 获取扫描器的ClassLoader,保证同源
|
// 获取扫描器的ClassLoader,保证同源
|
||||||
ClassLoader cl = scanner.getClass().getClassLoader();
|
ClassLoader cl = scanner.getClass().getClassLoader();
|
||||||
for (String packageName : packageNames) {
|
for (String packageName : packageNames) {
|
||||||
|
Loading…
Reference in New Issue
Block a user