Comments are not supported in -source 1.3 (please use -source 5 or higher to enable comments)

When executing maven build, an error is reported, and the error message is as follows: (Yellow shading part)

At first, I thought that there was a problem with the jdk version, thinking that the JDK version was too low, but after some confirmation, the 1.6.x version of jdk was used for compilation. It is higher than the 1.5 indicated by the information in the picture above. Not much nonsense, attach the solution:

make sure that the version of the yellow font part of the above picture is greater than or equal to 1.5, I am here to keep it consistent with the jdk version.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326676450&siteId=291194637