0 votes
in Spring by

What is the importance of Spring bean configuration file?

1 Answer

0 votes
by

We use Spring Bean configuration file to define all the beans that will be initialized by Spring Context. When we create the instance of Spring ApplicationContext, it reads the spring bean XML file and initializes all of them. Once the context is initialized, we can use it to get different bean instances.

Apart from Spring Bean configuration, this file also contains spring MVC interceptors, view resolvers and other elements to support annotations based configurations.

Related questions

0 votes
asked Jul 27, 2020 in Spring by Robindeniel
0 votes
asked Jul 26, 2020 in Spring by SakshiSharma
...