Spring relies heavily on introspection to discover resources, beans, and wire your application together. Introspection can be CPU-intensive and contributes to the cold start time of a Java application. There are a number of optimization we can make in our Spring application to minimize cold start times in Lambda.
https://aws.amazon.com/blogs/compute/operating-lambda-performance-optimization-part-1/