Use the latest version of Swagger today, introduced in pom.xml
< dependency > < groupId > io.springfox </ groupId > < artifactId > springfox-swagger2 </ artifactId > < version > 3.0.0 </ version > </ dependency > < dependency > < groupId > io.springfox </ groupId > < artifactId > springfox-swagger-ui </ artifactId > < version >3.0.0</ version > </ dependency >
After other things are done, visit http://localhost:8080/swagger-ui.html and there is an error like the title.
The solution is as follows:
replace the pom.xml content with
< dependency > < groupId > io.springfox </ groupId > < artifactId > springfox-boot-starter </ artifactId > < version > 3.0.0 </ version > </ dependency >
Access: http://localhost:8080/swagger-ui/
Note that the last slash /
must not be less
Pro test is easy to use, no need to access the file at the end of .html
Similar Posts:
- [Solved] Springboot Integrate Swagger2 3.0.0 Error: Failed to start bean ‘documentationPluginsBootstrapper’
- [Solved] Springboot integrate swagger Error: failed to start bean ‘documentationpluginsboot
- [Solved] Swagger Error: Failed to start bean ‘documentationPluginsBootstrapper’
- [How to Solve] RestController cannot be recognized in spring boot
- Unregistering JMX-exposed beans on shutdown Solution
- Springboot startup error start bean ‘eurekaautoserviceregistration’ NullPointerException
- Springboot always reports an error when importing JSP dependencies
- Pom.xml add dependency error [How to Solve]
- [Solved] java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUni
- [Solved] Startup Error: Failed to start bean ‘documentationPluginsBootstrapper’