How to Build RESTful Application with JAX-RS 2 and IntelliJ IDEA 13

IntelliJ IDEA, a JetBrains IDE · 81K views · 2013 · 12:17

Open on YouTube

Web developmentTesting, debugging & developer toolsSoftware practice, open source & careerstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed when setting up a JAX-RS REST service in IntelliJ, usually when their own setup does not behave like the one in the video.

Recommended by 0 people across 0 different months, 2015 to 2016.

What it is

A 12-minute JetBrains walkthrough showing how to build a simple RESTful web service with Java EE 7's JAX-RS 2 inside IntelliJ IDEA 13. It is an official screencast from the IntelliJ IDEA channel that follows the IDE's project setup and JAX-RS workflow step by step.

What people said

Cites Daniel Argüelles · 2015-04 · Stack Overflow · on “Java-ee REST server with IntelliJ and Tomcat”

I'm trying to implement a REST Server API using Java-ee following this [this video] tutorial. Instead of Glassfish, I use Tomcat. I could develop a servlet @WebServlet(name = "hello", urlPatterns = "/") public class HelloWorld extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.getWriter().write("=)"); } } And join [LINK] I can see the smiling face. But when I try to access to the api path ( [LINK] ) I also get the face. If I remove the servlet class, I get a 404 error. I suppose I need something else to build automatically the api but I don't know what. Could someone tell my what is missing? What shoul

Cites Fiyaz Hasan · 2016-07 · Stack Overflow · on “IntelliJ IDEA: How to open pop-up "New in Current Directory"”

I am using IntelliJ IDEA Ultimate 2016.2 (on I am using OS X El Capitan 10.11.6), I follow video tutorial: [this video] , but I don't know how to open pop-up "New in Current Directory". [LINK]

Cites Dusan J. · 2016-08 · Stack Overflow · on “How to create simple RESTful service in IntellijIDEA 2016? (JAX-RS)”

My google-fu has failed me. I have lost 2.5 hours trying to figure this out. I just want to make this simple RESTful service with get and post requests that generate hello world on get (i.e. localhost:9000/hello ) and on post prints to service console what was sent in bla variable. I have found some simple examples import javax.ws.rs.GET; import javax.ws.rs.Path; @Path("greeting") public class Greeter { @GET public String sayHi() { return "Hi!!"; } } But it doesn't work intellij doesnt recognize Path and GET annotations. It asks me if I want to implement them. I've tried on both NewProj->JavaEE->Restful Web Service and NewProj->Java->WebApp->WebServices. Some sample generated code from one o