Could not exec java with Spring+Maven exit code 1

后端 未结 5 1255
梦如初夏
梦如初夏 2021-01-18 03:07

I am new to Spring/Maven, and am following this tutorial: Serving Web Content with Spring MVC.

Everytime I run mvn spring-boot:run, I get this error:

5条回答
  •  猫巷女王i
    2021-01-18 03:08

    I've same error as yours and finally I found it was cased by the wrong cooperation version between "spring-boot-starter-parent" and "spring-boot-autoconfigure", thereof making sure with same version. And also check their versions are the newest nor not.

    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.5.RELEASE
        
    
    
    
        
            org.springframework.boot
            spring-boot-autoconfigure
            2.1.5.RELEASE
        
    

提交回复
热议问题