create() — spring-boot Function Reference
Architecture documentation for the create() function in SpringBootServletInitializer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 11956b3e_6e5e_fb42_3523_1b06dc155ebd["create()"] ed562ac1_4cc1_2b33_9c91_d96b789b8686["create()"] 11956b3e_6e5e_fb42_3523_1b06dc155ebd -->|calls| ed562ac1_4cc1_2b33_9c91_d96b789b8686 b515cf29_e35b_1b67_886f_2c717cb898c4["AnnotationConfigServletWebApplicationContext()"] 11956b3e_6e5e_fb42_3523_1b06dc155ebd -->|calls| b515cf29_e35b_1b67_886f_2c717cb898c4 209c8070_3f4b_fc81_95dc_c3a64961e6d3["WebApplicationContextInitializer()"] 11956b3e_6e5e_fb42_3523_1b06dc155ebd -->|calls| 209c8070_3f4b_fc81_95dc_c3a64961e6d3 0b0cf05f_b17a_262c_8873_d45e2b74ef45["initialize()"] 11956b3e_6e5e_fb42_3523_1b06dc155ebd -->|calls| 0b0cf05f_b17a_262c_8873_d45e2b74ef45 style 11956b3e_6e5e_fb42_3523_1b06dc155ebd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializer.java lines 310–327
@Override
public ConfigurableApplicationContext create(@Nullable WebApplicationType webApplicationType) {
return new AnnotationConfigServletWebApplicationContext() {
@Override
protected void onRefresh() {
super.onRefresh();
try {
new WebApplicationContextInitializer(this)
.initialize(WarDeploymentApplicationContextFactory.this.servletContext);
}
catch (ServletException ex) {
throw new ApplicationContextException("Cannot initialize servlet context", ex);
}
}
};
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does create() do?
create() is a function in the spring-boot codebase.
What does create() call?
create() calls 4 function(s): AnnotationConfigServletWebApplicationContext, WebApplicationContextInitializer, create, initialize.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free