Webflux上的方面表现得很时髦



我正在为MVC和Webflux端点开发代码。我已经为Autologging编写了非常标准的AspectJ代码。

但是,每当我为Webflux端点应用此自动记录代码时,似乎会出现内存泄漏,当我停止服务器时,它会关闭并发出警告。

2018-11-21 17:49:25.456  INFO [webflux-async_logback,,,] 6174 --- [on(2)-127.0.0.1] inMXBeanRegistrar$SpringApplicationAdmin : Application shutdown requested.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/Users/ahallim/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.12/tomcat-embed-core-9.0.12.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
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

为Webflux/Reactive编写Aspects代码是个坏主意吗?如果是,为什么?有没有办法解决和减轻这种情况?

提前感谢

这不是内存泄漏。Webflux和AOP配合得很好。

最新更新