Below is the summary of understanding on context path and servlet path which is a research effort
1. server.servlet.context-path (old prop: server.context-path)
Context path of the application. The context path is the path to
which the whole web application is mapped.
"Context path" refers to the path of the URL that refers to the root of your
application. Usually, this path is equal to the name of your WAR file.
defines the context, if not set then it's the root context (/)
ex: if you set to foo, then your app will listen on http://localhost:8080/foo
2. spring.mvc.servlet.path (old prop: server.path)
sets the path to the dispatch servlet
The servlet path is the path to which Spring MVC's DispatcherServlet is mapped.
it immediately follows the server.servlet.context-path
If you set this to bar and don't have server.servlet.context-path set, your app
will listen on http://localhost:8080/bar If you have the server.servlet.context-path
set to foo and spring.mvc.servlet.path set to bar, your app will be listening on
http://localhost:8080/foo/bar.
"Servlet path" refers to a path that refers a specific servlet within your application.
Conclusion:
server.path = spring.mvc.servlet.path
server.context-path = server.servlet.context-path
Old property New property
server.context-parameters.* server.serv1et.context-parameters.*
server.context-path server. servlet. context-path
server.jsp.class-name server. servlet. jsp. class-name
server.jsp.init-parameters .* server. servlet.jsp .init-parameters.*
server.jsp.registered server. servlet. jsp.registered
server.path server.servlet. path
Please add your feedback/comments whether everything is correct.