我正在为MVC和Webflux端点开发代码。我已经编写了用于自动记录的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 /反应式代码方面不是一个好主意吗?如果是,为什么?反正有解决这个问题并缓解的方法吗?
预先感谢
答案 0 :(得分:0)
这不是内存泄漏。 Webflux和AOP可以很好地协同工作。