New Tutorials:   NUMPY    TKINTER    KOTLIN    JAVASCRIPT    SASS/SCSS    PL/SQL    Matplotlib    C++ Programs

REST: Creating the Registration Application

The prerequisites for developing the registration application are:

  1. Maven configured on the machine.
  2. Eclipse (IDE) installed on the machine.
  3. Apache Tomcat Server installed in the machine.

Steps of Development

  1. Choose the directory where you want to keep the files related to this application.
  2. Open the Command Prompt → cd {your directory} → run the below mentioned command in the command prompt.
    mvn archetype:generate -DartifactId=RegistrationApp
    -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

    Make sure that Maven is setup before running the above command. This command will create the web application structure in your directory and pom.xml file. This pom.xml file is the metadata of your application.

    Your pom.xml will look something like this,

    <project xmlns="" xmlns:xsi=""
      <name>RegistrationApp Maven Webapp</name>

  3. Now add Jersey dependency in the pom.xml file, just like the Junit dependency is added.

  4. Run the command: mvn eclipse:eclipse

    This will generate a .classpath and a .project file so that you can import this project into the eclipse.

    Creating the Registration Application

  5. The project structure should look like this in the eclipse now.