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.
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.
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.
Source: https://habr.com/ru/post/1379303/More articles:How to bind a parameter several times with MySQLI? - phpCrystal Reports - Hide the page title if there is no record on the page - crystal-reportsHow to wait for an object inside an IObservable with a specific property value? - c #Running multiple applications with the same profile on the same device (iPhone) - iosMagento - Product Attribute Index and Layered Navigation - magentoCompile a string as a Compass file - ruby โโ| fooobar.comCan I find out when people open a link on my site in a new tab? - phpCan I fill out a Facebook comment? - commentsEfficient way to replace placeholders with variables - phpLUFA Encoding Example for AT90USB162 - avrAll Articles