Home > Back-end >  Swagger error: Unable to infer the base url.
Swagger error: Unable to infer the base url.

Time:04-28

The idea of integration is swaager test interface, but after running up the project into the swagger error page
Long this

Excuse me, is what circumstance

CodePudding user response:

Way 1: close the page, after resumption of the project is completed, and then access the swagger - UI. HTML page
In the second way: if the project have validated intercept page configuration, need to be the pattern="./swagger - UI HTML/* * ", the pattern="/swagger - resources/* *," the pattern="/webjars/* *," the pattern="/v2/API docs/* *" the four pages also pass interception, according to their own projects using interceptor technology, modify the configuration file
  • Related