Webflux 表现时髦的方面
Aspects on Webflux acting funky
我正在为 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/Reactive 代码编写方面是个坏主意吗?如果是,为什么?有没有办法解决和缓解这个问题?
提前致谢
这不是内存泄漏。 Webflux 和 AOP 可以很好地协同工作。
我正在为 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/Reactive 代码编写方面是个坏主意吗?如果是,为什么?有没有办法解决和缓解这个问题?
提前致谢
这不是内存泄漏。 Webflux 和 AOP 可以很好地协同工作。