I have old Spring project that is using xml configuration.
And I want rewrite this configuration using java annotations (for some reasons).
In this xml configuration I have this creepy code:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns....>
<!-- ... -->
<import resource="classpath:/spring/${service.loader:service}-loader.xml" />
<!-- ... -->
</beans>
How I may rewrite this import statement using java annotations?
@Configuration
@Import({
// TODO What do I need write here?
})
public class SpringConfig {
// ...
}
Update:
Note: I want rewrite all xml files, and I need import java class (from property or default). I think I need condition statement for this.