Read here: https://www.concretepage.com/spring/e...
Spring @ImportResource annotation imports the XML configurations in JavaConfig based applications. The class annotated with @Configuration can use @ImportResource annotation to load XML configurations.