java mockserver和OpenSSL:无法加载库“netty\u tcnative\u windows\u x86\u 64”
为了测试客户端HTTP(S)通信,我使用“mock-server”。当前我想测试TLS连接,但出现以下错误:
i.n.u.internal.NativeLibraryLoader - -Dio.netty.native.workdir: C:\Users\xxx\AppData\Local\Temp (io.netty.tmpdir)
i.n.u.internal.NativeLibraryLoader - Unable to load the library 'netty_tcnative_windows_x86_64', trying other loading mechanism.
java.lang.UnsatisfiedLinkError: no netty_tcnative_windows_x86_64 in java.library.path
我的gradle依赖项:
testImplementation 'org.mock-server:mockserver:5.3.0'
testImplementation 'org.mock-server:mockserver-netty:5.3.0'
testImplementation 'io.netty:netty-tcnative-boringssl-static:2.0.7.Final:windows-x86_64'
testImplementation 'io.netty:netty-tcnative:2.0.7.Final:windows-x86_64'
在临时文件夹中,我可以看到有问题的dll,例如:
- netty_tcnative_windows_x86_646745663469304581179。dll
- 内蒂·特库国家7389825183963439904。dll
这是一个依赖性问题吗?我需要下载其他版本的netty吗
共 (0) 个答案