In our examples above, the SpringLambdaContainerHandler is declared as a static variable in the RequestStreamHandler implementation and initialized in a static block. This means Lambda executes the code as it starts the JVM, giving you better performance out of the gate.
https://github.com/awslabs/aws-serverless-java-container/wiki/Quick-start---Spring-Boot2