walkthrough

Html page to call the REST service

index.html

  • The calling html page is a simple page with 2 inputs and a submit button

Number Service

NumberService.xml

  • Most of the configuration is done via annotations itself. The code just does the business logic (i.e to add 2 numbers)
  • Path("/number/") annotation specifies the relative URI path that this class will serve is /number/

Spring configuration

config.xml

  • The spring configuration is a simple one line to read all the configuration settings through annotations
  • RestApp - spring configuration file

Walk through the code

Now that the application is running, let's walk through the code.

web.xml

Who's online

There are currently 0 users and 1 guest online.

Who's new

  • rajupmani
  • micmaria_li
  • krishna
  • Saravana Peruma...

Syndicate content