flink报错 java.lang.IlleagalStateException: No ExecutorFactory found to execute the application

idea中flink的代码再1.10版本的时候可以正常运行,但是当把flink版本改成1.11的时候运行就报错

flink报错 java.lang.IlleagalStateException: No ExecutorFactory found to execute the application

报错如下:
flink报错 java.lang.IlleagalStateException: No ExecutorFactory found to execute the application很是郁闷,究其原因是少依赖,1.11版本需要引入flink-clients 依赖
具体看flink官网
https://ci.apache.org/projects/flink/flink-docs-master/release-notes/flink-1.11.html#reversed-dependency-from-flink-streaming-java-to-flink-client-flink-15090
flink报错 java.lang.IlleagalStateException: No ExecutorFactory found to execute the application依赖加入之后成功运行:

<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-clients_2.11</artifactId>
    <version>1.11.0</version>
</dependency>