在idea中寫代碼過程中。有這種報錯出現:
Usage of API documented as @since 1.8+ more..
修改JDK版本的幾個地方
最后,在pom.xml文件中添加:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>
即可解決問題了。