PrepZone Logo
PrepZone
Back to Spring Boot

Spring Boot · Medium

Explain @Import and when to use it.

Spring BootAnnotations & ConfigJava ConfigSeniorStaff

Answer preview

Overview: @Import allows you to explicitly import one or more @Configuration classes into another configuration, registering their beans into the current application context — without relying on component scanning.…