gradle运行报错,IDEA运行也报错,因为gradl引入依赖时,用了compile
compileOnly group: 'org.apache.flink', name: 'flink-streaming-java_2.12', version: '1.9.2'
改成implementation就可以了debug和运行了
implementation group: 'org.apache.flink', name: 'flink-streaming-java_2.12', version: '1.9.2'