How to import Java-config class into XML-config so that both contexts have beans?
This actually ended up being fairly simple. To get a Java-config bean definition into the xml-config, simply define the Java-config class as a bean within the XML-config. There are no extra jars necessary. @Configuration public class SomeJavaConfig { @bean … [bean definition] } inside the XML-config, you define this class as a bean. <!– needed … Read more