swagger-samples
swagger-samples copied to clipboard
java-spring-boot 404 on every endpoint
Tried to get the spring-boot app running, I'm just looking for something to quickly demo something else.
mvn spring-boot:run
it fires up and starts listening on port 8080
curl localhost:8080 ... 404
curl -H 'content-type:application/json' localhost:8080/swagger.json ... 404
curl localhost:8080/pets/1 ... 404
i got the same issue for java-jersey2 sample project
http://localhost:8002/sample/openapi.yaml ...404
server.contextPath=/v2 in application.properties
use localhost:8080/v2/pets/1