[ERROR] Failure executing javac, but could not parse the error: javac: invalid target release: 1.8

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
javac: invalid target release: 1.8
Usage: javac
use -help for a list of possible options

出现这类问题,

首先查看pom.xml,发现如下:

        1.8
        1.8
然后

命令行运行

java -version 

获得版本是1.7

最后,将

        1.8
        1.8 中的1.8改为1.7

        1.7
        1.7即可!

你可能感兴趣的:(web,服务器开发,spring)