reflections
reflections copied to clipboard
something about org.reflections.util.ConfigurationBuilder#setInputsFilter
here is my maven dependency:
here is my code:
ConfigurationBuilder cfg = ConfigurationBuilder.build(packages, Scanners.MethodsAnnotated); Reflections reflections = new Reflections(cfg); Set<Method> methods = reflections.getMethodsAnnotatedWith(MyAnnotation.class);
this code worked well when I run it in the gui of idea, but after I packaged it into a springboot application and run it using java -jar command, I got a null result. I solved this problem by cfg.setInputsFilter(null); But I still don't know why.
I have this problem too
Me too
这是来自QQ邮箱的自动回复邮件。 您好,我已经收到您的邮件