I have a spring boot aplication with springfox-swagger2 and springfox-swagger-ui (version 2.9.2) genereting nice interactive api documentation based on my @Controller
components and their @RequestMapping
annotated methods.
I would llike to enhance generated documentation by custom commentary (eg via javadoc). Is there a way to achieve this? I have read through several tutorials and i am none the viser...
I finally discovered the solution. The @Api
annotation for controllers and @ApiOperation
for mothods have attributes that are displayed in swagger UI.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.