Swagger Problem not solved
CodeFreezr opened this issue · 3 comments
Today, 1.10.2017, I tried a complete fresh rebuild of the quickstart from scratch.
After Login and navigate to http://localhost:4200/swagger-ui.html
I've got the same error message as described in #50.
My Setup did not change.
What kind of information do you need to solve it?
Here a Log-Excerpt. Not sure if this lead to the root cause of the swagger issue: INFO 15520 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/projects/{id}],methods=[GET],produces=[application/json]}" on
to public org.springframework.http.ResponseEntity<com.mycompany.myapp.dto.ProjectDTO> com.mycompany.myapp.rest.ProjectResource.findById(java.lang.Integer) throws java.net.URISyn
taxException
To narrow down: Starting as jar swagger works. Is this intended?
Seem that is a issue with swagger version and more.
quickstart\pom.xml -> springfox-swagger2 2.7.0 springfox-swagger-ui 2.7.0
quickstart-generated\pom.xml -> springfox-swagger2 2.0.3 springfox-swagger-ui 2.0.3
API generation at http://localhost:4200/v2/api-docs/ works only with swagger =< 2.6.1
But still can't infer base URL
Only on quickstart-generated works from developer mode, don't know why.
On my project, using swagger 2.6.1
http://localhost:8080/swagger-ui.html works
http://localhost:4200/swagger-ui.html doesn't work (and no popup with missing base url)