servicecomb-java-chassis icon indicating copy to clipboard operation
servicecomb-java-chassis copied to clipboard

是否考虑支持函数重载

Open keepongjl opened this issue 8 years ago • 2 comments

现在的Provider不支持函数重载(契约生成会报错Caused by: java.lang.Error: OperationId must be unique),是否考虑支持函数重载?

keepongjl avatar Apr 19 '18 05:04 keepongjl

目前是支持函数重载的, 加上@ApiOperation标签即可。每个接口必须有唯一的operation id

liubao68 avatar Apr 20 '18 01:04 liubao68

Hello, @keepongjl , you can see this example code : CodeFirstSpringmvc.java , if you have any question, please contact us , thanks

zhengyangyong avatar Jul 24 '18 03:07 zhengyangyong