Spring is a highly adopted annotation-based configuration and it is happily accepted by developer communities. And why not? No one wants to struggle with XML tags, but that's not enough when there is no XML configuration or the external file configuration is not as powerful as an XML configuration would be; especially when we write an application that has to alter behaviors without compilation.
But still, writing an XML configuration is not readable and not easily understood by beginners, so I've written experimental plugins for Spring Boot that convert YAML definitions to Spring Beans.
Here is an example of a bean definition in XML and the bean definition in YAML.
Rohit jain 203428304230 gyan nagar sector 4 313001 Pune Maharastra India +91 INR
#spring-beans customerImpl: class: com.example.yamlbeanExample.Customer properties: firstName: Rohit lastName: jain phone: 203428304230 address: ref::addressImpl addressImpl: class: com.example.yamlbeanExample.Address properties: address1: gyan nagar address2: sector 4 pinCode: 313001 city: pune state: Maharastra country: ref::countryImpl countryImpl: class: com.example.yamlbeanExample.Country properties: countryName: India countryCode: 91 currency: INR
You can check out a project on GitHub
Note -> YAML-spring-beans is a just experimental library, there are lots of features not included. Feedback will be much appreciated!