adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you inject java collection in spring?

518


What is difference between @controller and @restcontroller in spring?

556


What is lazy class?

490