当我把我的java代码放在aws lambda上时,它会给出错误" Class not found"

时间:2017-06-20 13:00:10

标签: aws-lambda

当我将我的Java代码放在AWS Lambda上时,它会给出错误class not found。代码是

package com.amazonaws.lambda.demo;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;

public class LambdaFunctionHandler implements RequestHandler<Object, String> {

    @Override
    public String handleRequest(Object input, Context context) {
        context.getLogger().log("Input: " + input);

        // TODO: implement your handler
        return "Hello from Lambda!";
    }

}

0 个答案:

没有答案