Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以使用 maven 加载类。当我尝试通过 java loadclass() 函数加载类时,它会加载类但无法识别该类所做的各种导入,这很好。但是有吗加载类比通过 java loadclass() 函数更好的方法。谢谢
1.假设有两个类-A类和BI希望A访问B并获取B类中的一些方法名称。但我不想将依赖项添加到类路径中。我希望它通过maven发生。