You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "oxsean (via GitHub)" <gi...@apache.org> on 2024/07/30 07:30:54 UTC

Re: [I] Dubbo rest support Overload-method? [dubbo]

oxsean commented on issue #13377:
URL: https://github.com/apache/dubbo/issues/13377#issuecomment-2257666151

   ```groovy
       def "override mapping test"() {
           given:
               def request = new TestRequest(path: path)
           expect:
               runner.run(request, String.class) == output
           where:
               path                          | output
               '/say?name=sam&count=2'       | '2'
               '/say?name=sam'               | '1'
               '/say~SL'                     | '2'
               '/say~S'                      | '1'
               '/say~S?name=sam&count=2'     | '1'
               '/say~S.yml?name=sam&count=2' | '1'
       }
   
       String say(String name, Long count)
   
       String say(String name)
   ```
   In the latest REST Triple, support method override has been added by passing the method signature abbreviation.
   However, in the case of spring, it is recommended that you set up a different path to distinguish between overload methods.


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org