Whenever I try to deploy any projects developed in the Backend Development with Spring Boot +REST API skill path using Apache Tomcat, I get 404 Not Found error.
The following would be the structure of my project in general:
com > example > project > SpringbootApplication.java (Containing the @SpringBootApplication annotation)
com > example > project > controllers > SpringController (Containing the REST endpoints)
I am successfully able to access any endpoint created using above structure in Spring Boot Suite on localhost, but when I export the same project as a WAR and deploy it using Apache Tomcat, I always get 404 Not Found error code.
Can anyone help me with this?