Thank you for your reply.But I am not Understanding the JpetStore
sample.I have a simple java file containing one method add() which takes
two integer as input and returning an integer(after addition) to the client.
I will be thankful to you if you kindly tell me how to divide my class into
interfaces and classes and how to use spring related stuff.