简体   繁体   English

heroku上的REST ful java web服务?

[英]REST ful java web service on heroku?

how to write java REST Web service and Deploy it on heroku? 如何编写java REST Web服务并在heroku上部署它? Till now I just worked on simple java application on heroku, first time I am trying to deploy a web service. 直到现在我只是在heroku上使用简单的java应用程序,我第一次尝试部署Web服务。

Spring MVC's REST support is one option that is pretty easy to use. Spring MVC的REST支持是一个非常容易使用的选项。 Or you can use Play Framework's REST support . 或者您可以使用Play Framework的REST支持 Or there are many other options . 或者还有很多其他选择 They should virtually all run on Heroku so try a few and see what works for you. 它们应该几乎都在Heroku上运行,所以尝试一下,看看哪些对你有用。

Here's an example of a JAX-RS REST service, complete with Procfile and README for deploying to Heroku (not much to do). 这是一个JAX-RS REST服务的例子,配有Procfile和README,用于部署到Heroku(没什么可做的)。

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

It uses Grizzly as embedded server and is super lightweight. 它使用Grizzly作为嵌入式服务器,并且超轻量级。 Let me know what path you decide to take. 让我知道你决定走哪条路。 Curious about what works best for you. 好奇什么最适合你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM