I basically have the exact same problem as this user's question: Cannot access api-docs of microservice from spring cloud gateway. Failed to load API definition
Any help is appreciated.
I answered in the post that you mention. Try to follow my solution: https://stackoverflow.com/a/71996847/18936800