Java based configuration option enables you to write most of your Spring
configuration without XML but with the help of few Java-based annotations.
An example is the @Configuration annotation, that indicates that
the class can be used by the Spring IoC container as a source of bean
definitions. Another example is the@Bean annotated method that will
return an object that should be registered as a bean in the Spring application
context.