Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
public String customMethod(){
ApplicationContext ap = new ClassPathXmlApplicationContext("classpath:/META-INF/spring/application-context.xml");
CustomInterface test = (CustomInterface) ap.getBean("customClass");
return test.businessMethod();
}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
xmlns:xsi=""
xmlns:context=""
xmlns:mvc=""
xsi:schemaLocation="
">
<!-- Spring IoC Context -->
<context:component-scan base-package="com.test" />
<import resource="root-config.xml" />
<import resource="classpath:/root-context.xml" />
<!-- Enables the Spring MVC @Controller programming model -->
<mvc:annotation-driven />
</beans>
Route already contains own Spring config (Spring view at Mediation perspective). You can extend it as you wish.