What causes imported Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn't?

前端 未结 13 2156
情深已故
情深已故 2020-11-27 09:51

I imported a Maven project and it used Java 1.5 even though I have 1.6 configured as my Eclipse default Preferences->Java->Installed JREs.

When I

13条回答
  •  借酒劲吻你
    2020-11-27 10:18

    Simplest solution in Springboot

    I'll give you the most simpler one if you use Springboot:

    
      1.8
    
    

    Then, right click on your Eclipse project: Maven > Update project > Update project configuration from pom.xml

    That should do.

提交回复
热议问题