> 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/iii.-using-spring-boot/15.-configuration-classes/15.2.-importing-xml-configuration.md).

# 15.2. 导入XML配置

如果必须使用XML配置，建议你仍旧从一个`@Configuration`类开始，然后使用`@ImportResource`注解加载XML配置文件。
