liubao68 commented on issue #1622: 跟SpringMVC共用的时候会存在路径冲突
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1622#issuecomment-604197570
 
 
   按照你说的, 应该是 spring MVC 自己加载了下面的两个类作为 Controller。 我发的配置项只控制 java-chassis 不加载 
`@RestController`。 需要像个办法让 spring MVC 不加载 `@RestSchema` , 否则只能避免名字冲突了。 
   
   ```
   @RestSchema(schemaId = "RepeatServiceA")
   @RequestMapping(path = "/rest/repeat-a")
   public class RepeatService 
   
   @RestController("RepeatServiceB")
   @RequestMapping(path = "/rest/repeat-a")
   public class RepeatService 
   ```
   
   BWT: 实际应用场景需要 RepeatServiceA 和 RepeatServiceB 有一样的 url 吗? 感觉这个是个错误。 是不是 
"/rest/repeat-b"? 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to