Deploy Spring MVC web application to Lambda

1

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
asked a year ago488 views
1 Answer
1

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
EXPERT
answered a year ago
  • Thanks for your reply, but I must to use Spring MVC, NOT spring boot. Is there any idea ?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions