#java eclipse springboot white label error help

11 messages · Page 1 of 1 (latest)

outer snow
#

I was hoping that I could get some help with spring boot in eclipse. I am very new to it and trying to figure it out. I am not sure what I am doing wrong. Can someone please help me figure it out? When I try and run spring boot application from eclipse I get the error

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Jun 09 22:06:07 CDT 2023
There was an unexpected error (type=Not Found, status=404).
No message available

I saw an answer on a youtube video that said to move the java file to the controller folder but it looks like I don't have one of them.

java code
https://pastebin.com/tfWcqSeP

html code
https://pastebin.com/rcq3QrRE

package explorer
https://imgur.com/a/F77u9zz

plush reefBOT
#

This post has been reserved for your question.

Hey @outer snow! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

signal tendon
#

@outer snow Hi, how are you accessing the web page? If you put "localhost:8080/number-converter.html" does not work?

#

If you are just doing "localhost:8080" you will get an error because you don't have an index.html defined.

outer snow
#

I did try to do that but I am getting the white label error.

signal tendon
#

In the Eclipse console, what error do you get?

coarse raptor
#

Which site are you requesting?

#

I think /covertNumber and /number-converter.html should work

#

other sites shouldn't

#

as far as I have seen