Skip to content

Commit 9470f39

Browse files
author
Vadym Kazulkin
committed
investigate spring boot and in crac in lambda container image
1 parent 3821392 commit 9470f39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-boot-3.2-docker-image-with-crac/src/main/java/software/amazonaws/example/product/handler/GetProductByIdHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public APIGatewayProxyResponseEvent apply(APIGatewayProxyRequestEvent requestEve
3838
Optional<Product> optionalProduct = productDao.getProduct(id);
3939
try {
4040
if (optionalProduct.isEmpty()) {
41-
logger.info(" product with id " + id + "not found ");
41+
logger.info(" product with id " + id + "found ");
4242
return new APIGatewayProxyResponseEvent().withStatusCode(HttpStatusCode.NOT_FOUND)
4343
.withBody("Product with id = " + id + " not found");
4444
}
45-
logger.info(" product " + optionalProduct.get() + " not found ");
45+
logger.info(" product " + optionalProduct.get() + " found ");
4646
return new APIGatewayProxyResponseEvent().withStatusCode(HttpStatusCode.OK)
4747
.withBody(objectMapper.writeValueAsString(optionalProduct.get()));
4848
} catch (Exception je) {

spring-boot-3.2-docker-image-with-crac/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Globals:
1515
MemorySize: 1024
1616
Environment:
1717
Variables:
18-
JAVA_TOOL_OPTIONS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dspring.context.checkpoint=onRefresh -XX:CRaCCheckpointTo=./tmp"
18+
JAVA_TOOL_OPTIONS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1 "
1919
MAIN_CLASS: software.amazonaws.Application
2020
PRODUCT_TABLE_NAME: !Ref ProductsTable
2121

0 commit comments

Comments
 (0)