Heatmanofurioso
Heatmanofurioso

Reputation: 1028

Spring MVC Apache Server integration

I have developed a Spring MVC app that can detect Ajax requests sent into my local environment 'localhost:8000/examplePath' with a json body being received as a mapped parameter. So, until here, all is fine. My question is: Do i still need to deploy my application on a container 'Apache Tomcat/ HTTP Server for example' for my application to be accessible externally on a possible production environment, and if so why?

I want to better understand the necessity of such, if my backend 'Spring MVC app' can already receive and respond to ajax requests

Upvotes: 1

Views: 171

Answers (2)

Ivan Lynch
Ivan Lynch

Reputation: 562

This is because you can't access from internet to your local environment, you need a public adress to access your application from everywhere only if you want to access it over internet otherwise can do it with a local network connection to access it.

If you want any container, you can do it easy with Pivotal. This a container platform for Spring apps.

Upvotes: 1

Steve11235
Steve11235

Reputation: 2923

Spring MVC creates a Web application that must be deployed to a Web Application Server to run. The server handles the low level stuff such as raw sockets and the HTTP protocol.

Upvotes: 2

Related Questions