Java Virtual Threads: Enabling Preview API for newVirtualThreadPerTaskExecutor()
This message indicates that the method 'newVirtualThreadPerTaskExecutor()' is a new feature in Java that is still in the preview stage and is not yet fully supported. In order to use this feature, you need to enable preview APIs by adding the command line argument '--enable-preview' when running your Java application. This will allow you to use the 'newVirtualThreadPerTaskExecutor()' method and other preview APIs, but keep in mind that they may be subject to change or removal in future versions of Java.
原文地址: https://www.cveoy.top/t/topic/fWoc 著作权归作者所有。请勿转载和采集!