Rest Service with Intellij Overview Download IntellIj and run as - - PowerPoint PPT Presentation

rest service with intellij overview download intellij and
SMART_READER_LITE
LIVE PREVIEW

Rest Service with Intellij Overview Download IntellIj and run as - - PowerPoint PPT Presentation

Rest Service with Intellij Overview Download IntellIj and run as Administrator Setup Server Create Project Create Artifact Check Artifact to server Add Java Code Compile Add Server Download Glass Fish


slide-1
SLIDE 1

Rest Service with Intellij

slide-2
SLIDE 2

Overview

  • Download IntellIj and run as Administrator
  • Setup Server
  • Create Project
  • Create Artifact
  • Check Artifact to server
  • Add Java Code
  • Compile
slide-3
SLIDE 3

Add Server

Download Glass Fish Server if your IntellIj is not providing one Go to File → Settings -> Application server.

slide-4
SLIDE 4

Create Project

Go to File - > Project -> Java EE. Select RestFul WebService and Web Application Choose Glassfish server Download any libraries if it is suggesting

slide-5
SLIDE 5
slide-6
SLIDE 6
slide-7
SLIDE 7
  • Click next and give a Project Name
  • Make sure that your project structure is looks

same as in the next slide. Create the files in src folder

slide-8
SLIDE 8
slide-9
SLIDE 9

Create Artifact ( ctrl+ shift+ alt+ S)

slide-10
SLIDE 10

Add the following helloworld Code in src

slide-11
SLIDE 11

Add the following MyApplication Code in src

slide-12
SLIDE 12

Server Configuration

  • Go to Edit Configuration in GlassFish 4.1.1 Drop down(at the top)
  • Make sure that the URL contains the correct war name provided in the

previous step

  • Add the end point mentioned in helloword.java
slide-13
SLIDE 13
slide-14
SLIDE 14

Start the server