You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConfigurationBuilder cfg = ConfigurationBuilder.build(packages, Scanners.MethodsAnnotated);
Reflections reflections = new Reflections(cfg);
Set 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.
The text was updated successfully, but these errors were encountered:
here is my maven dependency:
org.reflections reflections 0.10.2here is my code:
ConfigurationBuilder cfg = ConfigurationBuilder.build(packages, Scanners.MethodsAnnotated);
Reflections reflections = new Reflections(cfg);
Set 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.
The text was updated successfully, but these errors were encountered: