【发布时间】:2022-07-04 22:39:03
【问题描述】:
def hawkClient = new com.wealdtech.hawk.HawkClient.
Builder()
.credentials(new com.wealdtech.hawk.HawkCredentials.Builder()
.keyId("your-hawk-hey-id")
.key("your-hawk-key")
.algorithm(Algorithm.SHA256)
.build())
.build();
def authorization = hawkClient
.generateAuthorizationHeader(sampler.getUrl().toURI(), sampler.getMethod(), sampler.getArguments().getArgument(0).getValue())
vars.put('authorization', 授权)
在执行上面的代码 sn-p 之后,我得到了一些错误。喜欢-
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed:
/home/cg/root/62c2edae2dde2/main.groovy: 1: unexpected token: . @
line 1, column 51.
com.wealdtech.hawk.HawkClient.
^
1 error
谁能帮我解决这个问题??
谁能帮我解决
【问题讨论】:
标签: groovy groovyshell groovy-console