[英]How to host Spring Webservice REST
This is my first Webservice application. 这是我的第一个Webservice应用程序。 I need to know how to host it I have Spring REST Webservice.
我需要知道如何托管它,我有Spring REST Webservice。 I can access succesfully my xml and JSON result in browser
我可以在浏览器中成功访问我的xml和JSON结果
http://localhost:8080/lms-mobile/lead/newLeads/last7days
Using Tomcat server. 使用Tomcat服务器。 Now this webservice going to be used in some mobile app.
现在,此Web服务将在某些移动应用程序中使用。 So what should be my next steps to make it available.Please help me with process.
因此,我应该如何做才能使它可用。请帮助我进行处理。 Thanks.
谢谢。
You can deploy your rest web application using cloud services. 您可以使用云服务部署其余的Web应用程序。 You can use Amazon EC2 instances to host your application.
您可以使用Amazon EC2实例托管您的应用程序。 Setup your database, tomcat server and deploy your app.
设置数据库,tomcat服务器并部署您的应用程序。 Your instance will have a public ip, using which you can expose your API's.
您的实例将具有一个公共ip,您可以使用该IP公开您的API。
Suppose ec2 instance ip is instanceip
. 假设ec2 instance ip是
instanceip
。
http://instanceip:8080/lms-mobile/lead/newLeads/last7days
http://instanceip:8080/lms-mobile/lead/newLeads/last7days
测试其是否正常工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.