Closed jiangxiaoqiang closed 2 years ago
There are a few ways to solve this. But it also depends what you want.
If you want to have 1 openapi.json
with all the routes in the one file/documentation.
Look at this example: custom_schema
If you want separate openapi.json
file for each path (1 for /actuator
and 1 for /fortune/contents
).
Then you have to do it like you are currently doing.
Then the files will be located at /actuator/openapi.json
and /fortune/contents/openapi.json
.
If you have more questions, just ask.
I am follow the official document to add open api it works, seems like this:
but when I change the route path
/
to/login
, the UI shows that :why did this happen? what should I do to fix it? my full route look like this: