Spring Boot: Cannot access REST Controller on localhost (404)

前端 未结 18 1487
天命终不由人
天命终不由人 2020-11-27 12:05

I am trying to adapt the REST Controller example on the Spring Boot website. Unfortunately I\'ve got the following error when I am trying to access the localhost:8080/

18条回答
  •  感情败类
    2020-11-27 12:45

    It could be that something else is running on port 8080, and you're actually connecting to it by mistake.

    Definitely check that out, especially if you have dockers that are bringing up other services you don't control, and are port forwarding those services.

提交回复
热议问题