Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

要扫描 Java 的 package 中有某个注解的类,应该怎么做? - 无糖拿铁,谢谢 #38

Open
kbyyd24 opened this issue Mar 29, 2021 · 0 comments

Comments

@kbyyd24
Copy link
Owner

kbyyd24 commented Mar 29, 2021

https://blog.gaoyuexiang.cn/posts/how-to-scan-classes-in-java-package-with-annotation/

在 Java 自带的反射库中,我们只能根据具体的一个完整类名去加载一个类。如果我们想要在一个 package 中扫描所有的符合条件的类,就需要自己写代码实现。 但是作为

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant