Architecture of spring-projects/spring-boot
spring-projects/spring-boot is 10,170 source files holding 74,533 symbols across 15 modules, written mainly in Java, Kotlin, Shell. The largest module is module, with 4,327 files, and 1,225 files are entry points into the dependency graph.
How spring-boot fits together
Application code starts from a class that calls SpringApplication.run, as the README example shows. The module directory holds most of the framework's code, including the actuator module with web endpoint code such as WebOperationInvocationArguments and autoconfigure packages such as the AMQP RabbitMQ one. The core directory holds a large share of the framework's central code. The loader directory provides spring-boot-loader, which includes JarUrlClassLoader for loading classes from jar URLs when an application runs as an executable jar. The build-plugin directory contains spring-boot-maven-plugin, where StartMojo starts applications from Maven. The documentation directory holds the reference documentation sources.
Largest modules
- module: 4,327 files and 271,429 lines of code
- core: 1,638 files and 127,805 lines of code
- documentation: 908 files and 13,773 lines of code
- smoke-test: 782 files and 25,623 lines of code
- build-plugin: 378 files and 19,526 lines of code
- configuration-metadata: 281 files and 15,633 lines of code
- loader: 243 files and 21,384 lines of code
- buildSrc: 235 files and 17,033 lines of code
Languages
By file count: Java 8,738 files, Kotlin 493 files, Shell 5 files, JavaScript 3 files, Ruby 3 files, Dockerfile 2 files.
Documentation
Repowise documents spring-boot in 5,267 pages generated from the source, 119 of them written explanations of the repository and its modules.
More on spring-boot: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos