测试客户端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'
在temp文件夹中,我可以看到有问题的dll,例如:
这是依赖性问题吗?我是否需要下载其他版本的netty?