tomcat -- 隨後記

1.有效解決The valid characters are defined in RFC 7230 and RFC 3986問題

       配置tomcat/conf下的catalina.properties

        添加或者修改:

       tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
      org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true

      同時添加server.xml中的connector
               relaxedPathChars=""><[]{}|\^"
               relaxedQueryChars=""><[]{}|\^"

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章