Starting with Restful api in intellij

while creating project, First Select the web application and restful api like in the pic.



Then Create two class like in the pic

If this is not working see the video in this link


//////////////Above method is shown in official jetbrain page But it doesnot work for me///////////////////



Another way of doing it is:

-->Create a project with maven, 
-->select create archetype.
-->select org.glassfish.jersey.archetype:jersey.quickstart.webapp
-->select jersey.quickstart.webapp:2.31
-->GiveName and finish

-->Configure tomcat in edit configuration and run
 

Comments

Popular posts from this blog