Intellij idea 注入的资源类型ManagedScheduledExecutorService无效

Intellij idea 注入的资源类型ManagedScheduledExecutorService无效,intellij-idea,ejb,Intellij Idea,Ejb,我正在通过javax.annotation.Resource-annotation注入javax.enterprise.concurrent.ManagedScheduledExecutorService。IntelliJ(2019-3-2最终版)显示错误消息“注入的资源类型ManagedScheduledExecutorService无效”。编译运行时没有错误,程序运行正常。可以使用@SuppressWarnings(“EjbEnvironmentInspection”)抑制错误消息。这样行吗

我正在通过javax.annotation.Resource-annotation注入javax.enterprise.concurrent.ManagedScheduledExecutorService。IntelliJ(2019-3-2最终版)显示错误消息“注入的资源类型ManagedScheduledExecutorService无效”。编译运行时没有错误,程序运行正常。可以使用@SuppressWarnings(“EjbEnvironmentInspection”)抑制错误消息。这样行吗