0

Perhaps I phrased the question wrong. I meant to say that I want to load all java configuration file available in the class path instead of the applicationContext.xml. Something like this -

@Configuration
@ImportResource("Some other configuration java files which might be in the dependant projects but in the same classpath")  
public class AppConfig {

}
1

1 Answer 1

1

Try with @ImportResource annotation to import your xml configuration in java based configuration

@Configuration  
@ImportResource("classpath*:beancontext/applicationContext.xml")  
public class AppConfig {

}  
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your reply. Perhaps I phrased the question wrong

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.