spring-guides / gs-rest-service

Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring.

Home Page:https://spring.io/guides/gs/rest-service/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Whitelabel Error Page with status "404" While running Spring Boot Application

teguhteja opened this issue · comments

Hello There

I Get Whitelabel Error Page with status "404" While running Spring Boot Application from folder "Completed" with using Maven (mvn spring-boot:run ) on Ubuntu. When open on chrome browser i get that error. after searching in stack overflow i get solve from this :
https://stackoverflow.com/questions/49034254/spring-boot-whitelabel-error-page-type-not-found-status-404
the solution to create folder controller and model then running mvn clean package spring-boot:run
image

i think you could close this ticket. just reported if some new found error could solve this.

Thehttps://spring.io/guides/gs/rest-service/ is a fucking trash. They didn't mention where to put the java file with main().

This helped with my issue as well, thanks!