You should use recommended versions by the springfox-boot-starter
as @eis has mentioned in comments you shouldn't override specified versions by spring boot starters unless you have an issue with recommended versions.
Removing version tag from springfox-swagger2
& springfox-swagger-ui
dependencies from your pom.xml
will fix the issue.
I also has configured swagger using the same tutorial several times, I noticed that springfox-boot-starter
has been added recently. You don't need to delcare springfox-swagger2
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
</dependency>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…