ZhangJiaLei123 commented on issue #3001:
URL: 
https://github.com/apache/incubator-shenyu/issues/3001#issuecomment-1064822020


   I set it
   * divide config
   ```json
   {
       "pluginName": "divide",
       "selectorHandler": "[{\"upstreamUrl\":\"127.0.0.1:8507\"}]",
       "conditionDataList": [{
           "paramType": "uri",
           "operator": "match",
           "paramValue": "/hnsp/**"
       }],
       "ruleDataList": [{
           "ruleHandler": "{\"loadBalance\":\"random\"}",
           "conditionDataList": [{
               "paramType": "uri",
               "operator": "match",
               "paramValue": "/hnsp/**"
           }]
       }]
   }
   ```
   * contextPath config
   ```
   {
       "pluginName": "contextPath",
       "conditionDataList": [{
           "paramType": "uri",
           "operator": "match",
           "paramValue": "/app/**"
       }],
       "ruleDataList": [{
           "ruleHandler": "{\"contextPath\":\"/app\"}",
           "conditionDataList": [{
               "paramType": "uri",
               "operator": "match",
               "paramValue": "/app/**"
           }]
       }]
   }
   ```
   I can successed on '127.0.0.1:9195/hnsp/uaccess/logintest', 
   failed on '127.0.0.1:9195/app/hnsp/uaccess/logintest'.
   error info:
   ```
   {
        "code": -107,
        "message": "divide:Can not find selector, please check your 
configuration!",
        "data": null
   }
   ```
    
   
![微信截图_20220311144202](https://user-images.githubusercontent.com/40969169/157816234-527d75ec-02e1-44e5-9d2c-1ec4eed65ca9.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to