Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

java-spring-boot 404 on every endpoint #121

Open
goraxe opened this issue Mar 14, 2018 · 2 comments
Open

java-spring-boot 404 on every endpoint #121

goraxe opened this issue Mar 14, 2018 · 2 comments

Comments

@goraxe
Copy link

goraxe commented Mar 14, 2018

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

@janzieg
Copy link

janzieg commented Jun 6, 2018

i got the same issue for java-jersey2 sample project

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

@zejun19
Copy link

zejun19 commented Feb 2, 2023

server.contextPath=/v2 in application.properties

use localhost:8080/v2/pets/1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants