Skip to content

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

Notifications You must be signed in to change notification settings

oeresundsgruppen/swaggerTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages