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.