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

asked a year ago488 views
1 Answer


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
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