cmkcmk181 commented on issue #1859:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1859#issuecomment-656510363


   content和body都有值,但是路由还是不生效。直接配置在microservice.yaml中是生效的
   
   
![image](https://user-images.githubusercontent.com/8915324/87123990-673d5600-c2ba-11ea-8c48-972898722239.png)
   
   json格式如下:
   {
       "servicecomb": {
         "edge": {
           "filter": { 
             "addHeader": {
               "enabled": true,
               "allowedHeaders": "Authorization"
             }
           }
         },
         "http": {
           "dispatcher": {
             "edge": {
               "url": {
                 "enabled": true,
                 "pattern": "/(.*)",
                 "mappings": {
                   "authV1": {
                     "prefixSegmentCount": 1,
                     "path": "/api/auth/v1/.*",
                     "microserviceName": "fw-auth",
                     "versionRule": "1.0.0-2.0.0"
                   }
                 }
               }
             }
           }
         }
       }
   }
   


----------------------------------------------------------------
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.

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


Reply via email to