Deploying an Azure App Service with file storage

Evan Gertis 1 Reputation point
2021-12-27T20:32:57.503+00:00

I am working on a project to deploy a simple mvn application as an azure web application. I've tried placing the view directory in multiple locations since the controller is returning some form of the view. The application.yml file is written like so

   server:  
     port: 80  
      
   spring:  
     mvc:  
       view:  
         prefix: view/  
         suffix: .jsp  
     profiles:  
       active: dev  
     main:  
       banner-mode: off  

161320-image.png

After logging on to the app service registration via ssh I can see that there aren't any files saved on the server.

Expected:
The webapp returns the view word_match.jsp when a GET request is made to /wordmatchgenerator.

Actual:
whitelabel 404 error

161319-image.png

161364-image.png

I'm unable to upload images to this post so I've created a stackoverflow post: https://stackoverflow.com/questions/70498138/how-to-deploy-a-mvn-application-as-an-azure-web-app. Any help with this would be greatly appreciated.

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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.