I am trying to change the displayed method order in swagger-ui
page using java.
I need to show first welcome
later hello
controller method.
Below is my code.
In the @ApiOperation
annotation you have an attribute position
that you can set to change the order. Note that the attribute is deprecated but still works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With