在将Micronaut lambda代码部署到AWS时遇到问题。
jar已具有必需的类。
这是堆栈跟踪:-
com.amazonaws.serverless.exceptions.ContainerInitializationException: Error starting Micronaut container: Error instantiating bean of type [io.micronaut.web.router.DefaultRouter]
Message: Error processing bean [Definition: com.signify.iot.platform.controller.$ServiceResourceControllerDefinition$Intercepted] method definition [Object onErrorNotFound(HttpRequest request,EntityNotFoundException e)]: Attempted to register multiple local error routes for exception com.signify.iot.platform.frameworks.microserviceframework.v3.errors.exceptions.EntityNotFoundException Path Taken: new DefaultRouter([Collection builders])
`at io.micronaut.function.aws.proxy.MicronautLambdaContainerHandler.initialize(MicronautLambdaContainerHandler.java:189)
at io.micronaut.function.aws.proxy.MicronautLambdaContainerHandler.<init>(MicronautLambdaContainerHandler.java:103)
at io.micronaut.function.aws.proxy.MicronautLambdaContainerHandler.<init>(MicronautLambdaContainerHandler.java:112)
at io.micronaut.function.aws.proxy.MicronautLambdaContainerHandler.getAwsProxyHandler(MicronautLambdaContainerHandler.java:121)
at com.signify.iot.platform.proxy.aws.ServiceLambdaHandler.<clinit>(ServiceLambdaHandler.java:17)`