What do you mean by Spring Java Based Configuration?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 22, 2018

 

Spring configuration files are XML files. These files contain the information of classes and describe how these classes can be configured and merged to each other. Java based configuration is a feature which enables the user to write most of their spring configuration without using XML. Instead, they are written with the help Java-based annotations.

For example, Java Annotation @Configuration is used to indicate that Spring IoC container can use the class, which is a source of bean definitions.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Spring interview questions

    What are the features/ characteristics of spring?

    The important features of spring are as follows:Lightweight: Considering transparency and size, spring is lightweight..

    Spring interview questions

    How many types of modules are there in spring? Name them.

    There are around twenty modules, which can be categorized into Core Container, Web, Data Access or Integration, Aspect ..

    Spring interview questions

    What are the advantages of spring?

    There are many advantages of spring. Some of them are as follows: Spring provides for templates for JDBC, Hibernate, an..