Deploy Spring MVC web application to Lambda

0

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 Application.java 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 Application.java Enter image description here

My LambdaHanlder.java Enter image description here

kha
posta un anno fa456 visualizzazioni
1 Risposta
0

Hi,

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: https://github.com/tyler2cr/AWS-Lambda-with-Spring-MVC.

Hope it helps ;)

profile picture
ESPERTO
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