swagger-samples icon indicating copy to clipboard operation
swagger-samples copied to clipboard

java-spring-boot 404 on every endpoint

Open goraxe opened this issue 6 years ago • 2 comments

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

goraxe avatar Mar 14 '18 21:03 goraxe

i got the same issue for java-jersey2 sample project

http://localhost:8002/sample/openapi.yaml ...404

janzieg avatar Jun 06 '18 15:06 janzieg

server.contextPath=/v2 in application.properties

use localhost:8080/v2/pets/1

zejun19 avatar Feb 02 '23 15:02 zejun19