Billiam leefer

Greenhorn
+ Follow
since Nov 22, 2017
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Billiam leefer

My code is right, I am sure of that, however my environment is wrong. I just got to figure out how it is wrong.
1 year ago
I am currently trying to create a simple Spring Boot application that I can send a request from my Postman application to a rest endpoint and the application will perform a basic operation on the data handed over and return the result in a Response.

Here is my RestService class with one endpoint that returns a message to say it was connected to:



Here is my main class:



I hava an index.html containing a simple title and paragraphwhich shos when I run the app on server. I orginally had a web.xml but I found that my IDE, STS, doesn't need it and it actually got in the way so I deleted it.

When I connect to localhost:8080/testApplication via Postman or in my browser I am met with a 404 displaying "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"



Here is my current pom.xml:



I have posted this to StackOverflow as well. One user has given me a configuration they say works for them but it does not work for me.

I am completely at the end of what I can do to fix this. What should be a simple task to introduce myself to Spring has turned into a nightmare. Any help will be appreciated. I will be more than happy to provide any additional information needed to solve this.
1 year ago