Skip to content

Commit 3821392

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package software.amazonaws.example.product.handler;
55

66
import java.util.Optional;
7+
import java.util.Properties;
78
import java.util.function.Function;
89

910
import org.slf4j.Logger;
@@ -31,6 +32,8 @@ public class GetProductByIdHandler implements Function<APIGatewayProxyRequestEve
3132
private static final Logger logger = LoggerFactory.getLogger(GetProductByIdHandler.class);
3233

3334
public APIGatewayProxyResponseEvent apply(APIGatewayProxyRequestEvent requestEvent) {
35+
Properties prop = System.getProperties();
36+
logger.info ("JVM Vendor : " + prop.getProperty("java.vendor") );
3437
String id = requestEvent.getPathParameters().get("id");
3538
Optional<Product> optionalProduct = productDao.getProduct(id);
3639
try {

0 commit comments

Comments
 (0)