menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right Tomcat getServletPath()的处理 chevron_right Tomcat getServletPath()的处理.md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    Tomcat getServletPath()的处理.md
    414 B / 2021-07-15 20:08:09
        ### Tomcat getServletPath()的处理
    
    在getServletPath()函数中是调用了Request.getServletPath()函数的:
    
    ![](./resource/TomcatgetServletPath()的处理/media/rId21.png)
    
    跟进去,看到是直接返回前面Tomcat已经处理过后的提取处理的Servlet路径,注意这里是获取MappingData类对象中的wrapperPath属性值:
    
    ![](./resource/TomcatgetServletPath()的处理/media/rId22.png)
    
    
    links
    file_download