How to create simple RESTful service in IntellijIDEA 2016? (JAX-RS)
<p>My google-fu has failed me.</p>

<p>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.</p>

<p>I have found some simple examples</p>

<pre><code>import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Path("greeting")
public class Greeter {
    @GET
    public String sayHi() {
        return "Hi!!";
    }
}
</code></pre>

<p>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.</p>

<p>Some sample generated code from one of them made this @webmethod annotation for which I wasn't able to find any info on the net. And the JetBrains <a href="https://www.youtube.com/watch?v=D3nnjmK1GwE" rel="nofollow">video</a> from 2013 looks like an overkill/a-bit-outdated?. This is really simple app, I don't need/know how to use/ Maven.</p>