The server and clients in java?

Is it possible to create a server based on spring MVC, and to him in addition to write desktop and mobile applications? If Yes, then what is to realize how to communicate clients and server? Or for such cases, spring is not the best choice, and it is only for web a?
Here for example the VC one server for the website, desktop and mobile applications?If so, how they differentiate it? Do I need the server to know who's knocking him?
March 19th 20 at 09:12
1 answer
March 19th 20 at 09:14
Solution
Is it possible to create a server based on spring MVC, and to him in addition to write desktop and mobile applications?

Yes.

If Yes, then what is to realize how to communicate clients and server?

If Spring MVC, the REST is the most natural way of interaction.

Or for such cases, spring is not the best choice, and it is only for web a?

First you need to understand what Spring MVC is not the whole Spring. Not even a tenth part of it.

Do I need the server to know who's knocking him?

There is no need. Get the customer to comply with the communication Protocol with the server.
Ie it turns out if I have a website and a web server on spring, and I want to write a mobile app for this, it is the task of the application how to parse and use the information? - jayda.Trantow commented on March 19th 20 at 09:17

Find more questions by tags SpringJava