Closed jackxpeng closed 7 years ago
What request are you doing ?
I tried requests in chrome like
http://localhost:8080/ http://localhost:8080/estimates/price http://localhost:8080/estimates/time http://localhost:8080/webjars http://localhost:8080/api-docs http://localhost:8080/swagger-ui.html
I see a list of mappings when starting it up so I tried them to no avail.
2017-04-18 10:21:39.878 INFO 19377 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/]}" onto public java.lang.String io.swagger.configuration.HomeController.index()
2017-04-18 10:21:39.883 INFO 19377 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/products],methods=[GET],produces=[application/json]}" onto public org.springframework.http.ResponseEntity<java.util.List
Your context path is /v1
So try http://localhost:8080/v1/swagger-ui.html
oh that's it. Thanks a lot, Christophe!
generated spring boot code always returns 404. I tried git clone, the cli jar, and the online editor. Same thing. In each case I just used either the petstore json or in the case of the online editor, I did not modify the yaml. I was just trying codegen out for a project.
Swagger-codegen version
latest
Swagger declaration file content or url
just try it
Command line used for generation
use the one in samples/server/petstore/springboot
Steps to reproduce
mvn spring-boot:run
Related issues
none spring-server-generated.zip
Suggest a Fix
none