In this article, we will see the configuration of a simple web service Example. For this, we annotate a class…