Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwaggerTest example to show the useal unable to infer base url bug, which is reported by several developers. Now its working in tomcat.

dispatcher-servlet is configured for tomcat and end-points are working

http://localhost:8080/swaggerTest/swagger-ui.html http://localhost:8080/swaggerTest/v2/api-docs

Deployed to Tomcat8/9.

To run the sample

mvn clean install spring-boot:run

Using SpringFox Swagger.

Logging is set to Trace, to show:

  • Found resource handler mapping: URL pattern="/swagger-ui.html"
  • Mapped URL path [/v2/api-docs] onto method

Tiny springboot 2.0 spring-mvc example with single JSP.

http://localhost:8080/webAPI SHOULD give:

OK

NOTE: This requires setting the webContent in a location that springboot knows to serve jsps

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

The API documentation in swagger

http://localhost:8080/v2/api-docs gives:

The service description

About

STILL DOES NOT WORK - SwaggerTest example to show the useal unable to infer base url bug, which is reported by several developers

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages