Skip to content
Advertisement

Why are Spring libraries including same parent packages made seperate?

I’ve just noticed two different libraries sharing paths. Example is as follows. enter image description here There are two seperate packages – spring-boot-actuator, spring-boot-actuator-autoconfigure.

enter image description here

Packages included in these libraries share the same parent package or package path. I can’t imagine the things under the hood. Wouldn’t this lead to linking errors?

Advertisement

Answer

Package a.b.c is different from a.b.c.d, there is no hierarchical relationship between any two packages in Java, as we may assume.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement