iamond operator is not supported in -source 1.5
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                iamond operator is not supported in -source 1.5
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                intellij運行flink出現下面的問題
Error:(56, 48) java: diamond operator is not supported in -source 1.5
 ? (use -source 7 or higher to enable diamond operator)
?
?
?下面是我的完整pom.xml文件,裏面紅色的是解決方案
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.xiao</groupId><artifactId>bbb</artifactId><version>1.0-SNAPSHOT</version> <build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.8.1</version><configuration><source>1.8</source><target>1.8</target></configuration></plugin></plugins></build> <dependencies><dependency><groupId>org.apache.flink</groupId><artifactId>flink-java</artifactId><version>1.10.0</version></dependency><dependency><groupId>org.apache.flink</groupId><artifactId>flink-streaming-java_2.12</artifactId><version>1.10.1</version><!-- <scope>provided</scope>--></dependency><dependency><groupId>org.apache.flink</groupId><artifactId>flink-clients_2.10</artifactId><version>1.2.0</version></dependency></dependencies></project>總結
以上是生活随笔為你收集整理的iamond operator is not supported in -source 1.5的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 巫师3秘密宝藏怎么挖
- 下一篇: 菜鸟教程中Java语法(Java教程+J
