Spring boot 3 return 404 on azure app

Florent Bonamis 21 Reputation points
2023-03-07T16:02:41.6066667+00:00

Hi,

We are running a Hello World app on an Azure Linux app.
When we are using Spring boot 2.76, there is no problem. When we are upgrading the sprong boot version to 3.0.4 we are encountering a 404 error.
Is this related to that kind of issue?
https://github.com/spring-projects/spring-boot/issues/33974

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,818 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 15,441 Reputation points
    2023-03-10T21:59:12.54+00:00

    @Florent Bonamis thanks for the additional info. To deploy a Spring Boot app on Azure Web App please follow the steps in this Azure doc : Quickstart: Deploy your first application to Azure Spring Apps. This tutorial explains how to deploy a small application to run on Azure Spring Apps.

    Please let us know if you have other questions.

    0 comments No comments

  2. Benjamin Possolo 5 Reputation points
    2023-03-14T17:03:32.6666667+00:00

    The solution is here.

    https://github.com/spring-projects/spring-boot/issues/33974#issuecomment-1468484374

    Solved by upgrading the ApplicationInsights Java Agent to 3.4.10

    My guess is the old agent is not compatible with jars compiled for Java 17.