Rest API best way to develop in spring boot and without any XML configuration. Giving example how to develop these APIs
Read this post on kpblogs.com