REST ful java gerok web service?

how to write java REST web service and deploy it to the hero? So far, I just worked on a simple java application on heroku, the first time I am trying to deploy a web service.

+4
source share
2 answers

Spring MVC REST support is one option that is pretty easy to use. Or you can use REST Framework Framework support. Or there are many other options . They should almost all work on Heroku, so try a few and see what works for you.

+8
source

Here is an example of the JAX-RS REST service, complete with Procfile and README for deployment to Heroku (not much to do).

https://github.com/jesperfj/jax-rs-upload-file

It uses Grizzly as an embedded server and is super lightweight. Let me know which path you decide to take. Curious what suits you best.

+3
source

Source: https://habr.com/ru/post/1379303/


All Articles