Runs Java apps built with Spring, Spring Boot, Jersey, Struts, or Spark inside AWS Lambda. Supports API Gateway proxy integration for requests and responses.
Overview
Serverless Java Container is a Java wrapper that lets existing framework-based applications run inside AWS Lambda without rewriting them for a serverless handler model. It targets applications written with Spring, Spring Boot, Apache Struts, Jersey, or Spark, and is built to work with Amazon API Gateway.
The container natively supports API Gateway proxy integration models for requests and responses. You can create and inject custom models for methods that use custom mappings instead of the default proxy shape.
Multiple release lines are maintained to align with different Java enterprise APIs (javax versus Jakarta), Spring Boot generations, and JAX-RS/Jersey versions. Older lines retain Struts and Spark support; newer lines focus on Jakarta EE and current Spring Boot stacks.
Quick-start guides cover integrating the container with Spring, Spring Boot, Struts, Jersey, and Spark projects. Basic Lambda handlers can bootstrap a Spring application; sample applications illustrate deployment workflows using Maven and AWS SAM.
Key features
- Spring and Spring Boot on Lambda
- Jersey JAX-RS support
- API Gateway proxy integration
- Custom API Gateway mapping models
- Apache Struts support (1.x line)
- Spark micro-framework support (1.x line)
- Maven and SAM sample deployments
Use cases
- Re-platforming Java web APIs to Lambda
- Running Spring Boot behind API Gateway
- REST services with Jersey on serverless compute