> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/ix.-how-to-guides/73.-spring-boot-application/73.4-build-an-applicationcontext-hierarchy-adding-a-parent-or-root-context.md).

# 73.4 构建ApplicationContext层次结构

你可以使用`ApplicationBuilder`类创建parent/child `ApplicationContext`层次结构，查看“Spring Boot特性”章节的[23.4. 流式构建API](https://docs.spring.io/spring-boot/docs/2.0.0.RELEASE/reference/htmlsingle/#boot-features-fluent-builder-api)获取更多信息。
