REST API deployed successfully but returns 404

Bruno Valem Aranha 1 Reputation point

I created an app service and deployed a REST API with the following controller:

public class TestController {  
    public String getTest(){  
        return "TEST";  

The URL is "", so i believe that "{URL}/project/test" should return the String from the method getTest(), but I get HTTP Status 404 everytime.

For reference, i used this video as a guide for my app service:

Can anyone help me please?


Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,321 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 8,756 Reputation points Microsoft Employee

    Hi @Bruno Valem Aranha ,

    We are sorry to hear you're facing this issue. Thanks for sharing a link to the video you followed. That tutorial is a bit outdated.

    I would also highly recommend following this current Azure tutorial which shows you how to Deploy Spring Boot applications using CLI or using Maven.

    There could be a few reasons why you're getting that error. You can also try the below troubleshooting suggestions:

    • Check to see if the application can run locally with the specified Java runtime version.
    • Test the API using a tool such as Postman to see if you are able to access it and receive a response.
    • Make sure the environment variables have their expected values and the JVM parameters have their expected values.

    Hope that helps. Please let us know if you have further questions


    --If the reply is helpful, please Upvote and Accept as answer--