1.作用域不同:
server.servlet.contextPath
tomcat容器提供的用于区别容器内多个服务实例的资源定位路径
spring.mvc.servlet.path
SpringMVC框架提供的网络资源定位路径
2.执行顺序 http://localhost:8080/context-path/servlet-path