> 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/iv.-spring-boot-features/46.-creating-your-own-auto-configuration/46.5-creating-your-own-starter/46.5.2-autoconfigure-module.md).

# 46.5.2 自动配置模块

自动配置模块包含了使用该library需要的任何东西，它可能还包含配置的key定义（例如`@ConfigurationProperties`）和用于定义组件如何初始化的回调接口。

**注** 你需要将对该library的依赖标记为可选的，这样在项目中添加该自动配置模块就更容易了。如果你这样做，该library将不会提供，Spring Boot会回退到默认设置。
