Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Writing a REST service using the jetty plugin?

$
0
0

Howdy folks!

 

I'm a newbie web dev (ie, I've got plenty java experience, mostly on low-latency apps but almost nothing on servlets etc) and I'm tasked with writing a REST API using jetty.

I found the IDEA jetty plugin and thought it nifty to use it instead of embedding the jetty server.

I've configured the jetty server in the app server tab in prefs and created a module with jersey JAX_RS. I've created a small app (the infamous 'hello world'), created an artifact and

created a run configuration. I've added the artifact to the configuration but when I try to access the rest service I get a 404. I've tried various variants of the url but to no avail.

Is this possible?

My understanding is that you should be able to use annotations exclusivly and forgo a web.xml. Is this correct?

 

I'm grateful for any help here.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>