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

DoeClassLoader为什么要破坏双亲委派? #19

Open
1995hzczjut opened this issue Sep 15, 2019 · 2 comments
Open

DoeClassLoader为什么要破坏双亲委派? #19

1995hzczjut opened this issue Sep 15, 2019 · 2 comments

Comments

@1995hzczjut
Copy link

No description provided.

@1995hzczjut
Copy link
Author

是为了防止自定义的类跟系统已有的类全限定名一样,导致不被加载吗?

@VIPJoey
Copy link
Owner

VIPJoey commented Sep 19, 2019

是为了防止自定义的类跟系统已有的类全限定名一样,导致不被加载吗?

原因有二
1、有些业务api层设计不合理,包含了些敏感依赖如jackson等,会导致和主程序依赖冲突,所以要做隔离。
2、为了热加载,快速地让引入的jar生效。

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

No branches or pull requests

2 participants