I just added Swagger to my web application but when I display the UI the location url shows this:
http://localhost:8080${pageContext.request.contextPath}/api-docs
I had a look to Unable to get Swagger UI working with Spring boot and Not getting things working with Spring Boot and added the tomcat-embed-jasper
dependency as suggested
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
but I can still see the ${pageContext.request.contextPath}
in the url. I am using version 1.0.2
of swagger-springmvc
and version 0.4
of swagger-spring-mvc-ui
<dependency>
<groupId>com.mangofactory</groupId>
<artifactId>swagger-springmvc</artifactId>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.ajar</groupId>
<artifactId>swagger-spring-mvc-ui</artifactId>
<version>0.4</version>
</dependency>
Any help or suggestion on how to solve this will be much appreciated.