Code-based configuration

We saw how to design Spring beans by utilizing the XML configuration file. If you are used to XML configuration, you can ignore this topic.

The code-based configuration alternative empowers you to compose the majority of your Spring configuration without XML.