What are the ways by which configuration metadata can be provided to the spring container?



What are the ways by which configuration metadata can be provided to the spring container?..

Answer / Sumit Sharma

Configuration metadata can be provided to the Spring container using XML files (applicationContext.xml), Java-based annotations (@Component, @Service, @Repository, etc.), and Java configuration classes that extend the AbstractApplicationContext or Configuration classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is pojo class in spring?

1 Answers  


What is the bean life cycle in spring bean factory container?

1 Answers  


Why do we go for spring?

1 Answers  


What is the scope of spring?

1 Answers  


How to use tomcat jndi datasource in a spring web application?

1 Answers  


What is a transactional process?

1 Answers  


What is spring batch example?

1 Answers  


What problem does dependency injection solve?

1 Answers  


What are the types of dependency injection supported by spring?

1 Answers  


Explain the use of @controller and @requestmapping annotations in spring mvc.

1 Answers  


Is dependency injection necessary?

1 Answers  


Describe spring dao support?

1 Answers  


Categories