Tag Archives: Swagger2 3.0.0

[Solved] Springboot Integrate Swagger2 3.0.0 Error: Failed to start bean ‘documentationPluginsBootstrapper’

Add dependency

<dependency>
  <groupId>io.springfox</groupId>
  <artifactId>springfox-boot-starter</artifactId>
  <version>3.0.0</version>
</dependency>

Write swagger2 configuration class

@Enablewebmvc annotation can solve

Failed to start bean ‘documentationpluginsbootstrapper’

@Configuration
@EnableWebMvc
public class Swagger2Config {
}

test

Start the project and enter the web address

Swagger2.2.x. The website of version x is

http://localhost:8080/swagger-ui.html

For versions of swagger2 after 3.0.0, the website is

http://localhost:8080/swagger-ui/index.html