What kind of concept is the server?
After learning socket programming, we should understand that when we are a socket client, a socket server, both sides use socket to communicate
But now we use the bplash s mode to do the website development system, we use the browser, the browser is equivalent to the socket client, and the server is also equivalent to our socket server, so what is the server? The server is a piece of code, sun we provide tomcat, but this server is more powerful than the socket server we wrote. Although we socket programming using socket,b/s using the http protocol, in fact, the bottom is the same, the http protocol is only encapsulated socket.
So the server is just a powerful piece of code, that is, call the class execution method, get the result, and then return the result to the browser through the http protocol, much the same as socket programming, but the http protocol, inside things, need to learn and understand.