Deploy Spring MVC web application to Lambda


Hi everyone,

I would like to deploy my existed Spring MVC web application (Using external Tomcat) to Lambda

I tried to use SpringLambdaContainerHandler and org.apache.tomcat.embed, create a file to start my project, it's working at my local, but when i deplyed to lambda, invoke the function, it's show the error 404

Can you hlep me with this, thanks in advance ! Enter image description here

My Enter image description here

My Enter image description here

posta un anno fa510 visualizzazioni
1 Risposta


When looking at code, the main application seems the one that may cause the issue.

One option is to leverage springboot as for instance here:

Hope it helps ;)

profile picture
con risposta un anno fa
  • Thanks for your reply, but I must to use Spring MVC, NOT spring boot. Is there any idea ?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande