Can someone provide an example of SpringApplication that loads the applicationContext.xml file?
I'm trying to port a GWT RPC application to a RESTful web service using the Spring example (Gradle), I have applicationContext.xml, but I don't see how to get SpringApplication to load it. Manual download via
ApplicationContext context = new ClassPathXmlApplicationContext(args);
leads to an empty context .... and even if it worked, it would be separate from the one that was returned from
SpringApplication.run(Application.class, args);
Or is there a way to get external beans in the context of the application created by SpringApplication.run?
spring-boot applicationcontext
Raster
source share