Q:

Spring MVC - what is url path info?

I would like to know what is a url path info?
For example in 

http://myserver:8080/servletname/handlermethod

Is it the whole path including server name: 

http://myserver:8080/servletname/handlermethod

or is it just
/servletname/handlermethod

A:

getPathInfo() according to the doc:

Returns any extra path information associated with the URL the client
  sent when it made this request. The extra path information follows the
  servlet path but precedes the query string and will start with a "/"
  character.

so in your example it will return /handlermethod
If you want to have /servletname/handlermethod you should use getRequestURI().
getRequestURL() will return the full URL made by the client (except string parameters).

