控制台报错信息:
解决方案:在maven工程pom.xml中添加如下依赖
<dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version>
</dependency>
<dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version>
</dependency>
转载于:https://www.cnblogs.com/Mr-Elliot/p/10242285.html