The compiler compliance specified is 1.7 but a JRE

警告:The compiler compliance specified is 1.7 but a JRE 1.8 is used

解决:

右键点击项目>Properties>Java Compiler>将Compiler compliance level改为1.8 ,再点击Apply and close

image.png

猜你喜欢

转载自blog.51cto.com/14150615/2339510