I have two spring projects,
Project A: is built using xml bean confguration.
Project B : is built using Annotations; and A depends on B;
how can I load B beans inside the A applicationContext.
I searched but I found how to load xml beans using annotations : @ImportResource
Is there a way to do so without having to create two application context :
ApplicationContext applicationContextA = new ClassPathXmlApplicationContext("classpath:/applicationContextA.xml");
ApplicationContext applicationContextB = new AnnotationConfigApplicationContext(BConfiguration.class);
from Recent Questions - Stack Overflow https://ift.tt/3DhNdj0
https://ift.tt/eA8V8J
No comments:
Post a Comment