Deny access to certain class files in a dependency

2019-08-31 16:34发布

I have to include a jar file because I need certain classes in it in my dynamic web project.

My problem is that this jar contains an old version of apache.commons.io. BUT in my dynamic web project I have also included a newer version of apache.commons.io.

Now I want to avoid java to use the old version of apache.commons.io in my dynamic web project. Is there any way to tell java not to use classes in a certain folder in my jar?

0条回答
登录 后发表回答