netty.io java禁用调试消息

netty.io java禁用调试消息,java,netty,Java,Netty,因此,我用netty包装了一个应用程序,它运行良好,但它给我的调试消息如下所示: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/C:/Users/******/.m2/repository/io/netty/netty-all/5.0.0.Alph

因此,我用netty包装了一个应用程序,它运行良好,但它给我的调试消息如下所示:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 
(file:/C:/Users/******/.m2/repository/io/netty/netty-all/5.0.0.Alpha2/netty-all-5.0.0.Alpha2.jar) to 
field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of 
io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Juni 20, 2020 9:42:21 NACHM. io.netty.util.internal.PlatformDependent <clinit>
INFORMATION: Your platform does not provide complete low-level API for accessing direct buffers 
reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system 
unstability.
警告:发生了非法的反射访问操作
警告:io.netty.util.internal.PlatformDependent0进行非法反射访问
(文件:/C:/Users/******/.m2/repository/io/netty/netty-all/5.0.0.Alpha2/netty-all-5.0.0.0.Alpha2.jar)到
字段java.nio.Buffer.address
警告:请考虑向维护人员报告
io.netty.util.internal.PlatformDependent0
警告:使用--invalize access=warn以启用对进一步非法访问操作的警告
警告:所有非法访问操作将在未来版本中被拒绝
Juni 202029:42:21 NACHM。io.netty.util.internal.PlatformDependent
信息:您的平台没有提供用于访问直接缓冲区的完整低级API
可靠地。除非明确请求,否则堆缓冲区总是首选,以避免潜在的系统错误
不稳定。

我在5.0.0.Alpha2版上使用netty all,我只想禁用这些消息。

我发现
Logger.getLogger(“io.netty”).setLevel(Level.OFF)执行此操作并禁用调试/日志消息。

这是否回答了您的问题?它确实使大多数警告消失了,但仍然有一个警告:信息:您的平台没有提供可靠访问直接缓冲区的完整低级API。除非明确请求,否则堆缓冲区总是首选,以避免潜在的系统不稳定。