main() — spring-boot Function Reference
Architecture documentation for the main() function in SpringApplicationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8d8aadad_91e9_831d_52fc_43c286ff9af8["main()"] 081b24ea_02ef_faef_58aa_264e7347eda8["main()"] 081b24ea_02ef_faef_58aa_264e7347eda8 -->|calls| 8d8aadad_91e9_831d_52fc_43c286ff9af8 081b24ea_02ef_faef_58aa_264e7347eda8["main()"] 8d8aadad_91e9_831d_52fc_43c286ff9af8 -->|calls| 081b24ea_02ef_faef_58aa_264e7347eda8 67bae297_b590_f5e5_2666_5d557e3b57b1["SpringApplicationBuilder()"] 8d8aadad_91e9_831d_52fc_43c286ff9af8 -->|calls| 67bae297_b590_f5e5_2666_5d557e3b57b1 96180309_d35f_64e9_f339_53aa62a53500["web()"] 8d8aadad_91e9_831d_52fc_43c286ff9af8 -->|calls| 96180309_d35f_64e9_f339_53aa62a53500 9a3fc827_92a1_9230_11ce_b3ed4cf06303["close()"] 8d8aadad_91e9_831d_52fc_43c286ff9af8 -->|calls| 9a3fc827_92a1_9230_11ce_b3ed4cf06303 38fc4cf6_e1f4_234f_e57e_0772756d13fc["onApplicationEvent()"] 8d8aadad_91e9_831d_52fc_43c286ff9af8 -->|calls| 38fc4cf6_e1f4_234f_e57e_0772756d13fc 3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"] 8d8aadad_91e9_831d_52fc_43c286ff9af8 -->|calls| 3613e214_49bf_015b_c43f_7f8a1274fb0b style 8d8aadad_91e9_831d_52fc_43c286ff9af8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 2106–2121
static void main(String[] args) {
SpringApplication application = new SpringApplication(ExampleConfig.class);
application.setWebApplicationType(WebApplicationType.NONE);
application.addListeners(new ApplicationListener<ApplicationEnvironmentPreparedEvent>() {
@Override
public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
SpringApplicationBuilder builder = new SpringApplicationBuilder(
InnerApplicationConfiguration.class);
builder.web(WebApplicationType.NONE);
builder.run().close();
}
});
application.run(args);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does main() do?
main() is a function in the spring-boot codebase.
What does main() call?
main() calls 6 function(s): SpringApplicationBuilder, close, main, onApplicationEvent, run, web.
What calls main()?
main() is called by 1 function(s): main.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free