diff --git a/pom.xml b/pom.xml
index 4d10942..f6906ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
com.milmove.trdmlambda
trdm-lambda
- 0.2.3.1
+ 0.2.3.2
trdm java spring interface
Project for deploying a Java RESTful interface for SOAP requests to TRDM.
diff --git a/src/main/java/com/milmove/trdmlambda/milmove/StreamLambdaHandler.java b/src/main/java/com/milmove/trdmlambda/milmove/StreamLambdaHandler.java
index 3c52d82..6443d6c 100644
--- a/src/main/java/com/milmove/trdmlambda/milmove/StreamLambdaHandler.java
+++ b/src/main/java/com/milmove/trdmlambda/milmove/StreamLambdaHandler.java
@@ -4,21 +4,19 @@
import java.io.InputStream;
import java.io.OutputStream;
-import org.springframework.beans.factory.annotation.Autowired;
-
import com.amazonaws.serverless.exceptions.ContainerInitializationException;
import com.amazonaws.serverless.proxy.model.AwsProxyRequest;
import com.amazonaws.serverless.proxy.model.AwsProxyResponse;
+import com.amazonaws.serverless.proxy.model.HttpApiV2ProxyRequest;
import com.amazonaws.serverless.proxy.spring.SpringBootLambdaContainerHandler;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestStreamHandler;
public class StreamLambdaHandler implements RequestStreamHandler {
- @Autowired
- private static SpringBootLambdaContainerHandler handler;
+private static SpringBootLambdaContainerHandler handler;
static {
try {
- handler = SpringBootLambdaContainerHandler.getAwsProxyHandler(TrdmRestApplication.class);
+ handler = SpringBootLambdaContainerHandler.getHttpApiV2ProxyHandler(TrdmRestApplication.class);
// If you are using HTTP APIs with the version 2.0 of the proxy model, use the getHttpApiV2ProxyHandler
// method: handler = SpringBootLambdaContainerHandler.getHttpApiV2ProxyHandler(Application.class);
} catch (ContainerInitializationException e) {
diff --git a/src/main/java/com/milmove/trdmlambda/milmove/TrdmRestApplication.java b/src/main/java/com/milmove/trdmlambda/milmove/TrdmRestApplication.java
index 9e10070..143f007 100644
--- a/src/main/java/com/milmove/trdmlambda/milmove/TrdmRestApplication.java
+++ b/src/main/java/com/milmove/trdmlambda/milmove/TrdmRestApplication.java
@@ -10,6 +10,8 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
+import org.springframework.boot.SpringBootConfiguration;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
@@ -19,7 +21,7 @@
import ch.qos.logback.classic.Logger;
-@SpringBootApplication
+@SpringBootApplication()
public class TrdmRestApplication {
private Logger logger = (Logger) LoggerFactory.getLogger(TrdmRestApplication.class);
@Autowired