Unable to start spring-boot application in IntelliJ Idea

前端 未结 1 1189
名媛妹妹
名媛妹妹 2021-02-07 15:34

Overview

I can run the application by using maven plugin of spring-boot but not run it with the IDE. The following lines give some detail about my progr

相关标签:
1条回答
  • 2021-02-07 15:44

    I am guessing you have a war packaging project with Maven and you've flagged your servlet engine (tomcat) as provided.

    Unfortunately, IntellIJ IDEA does not add provided dependencies in the runtime classpath, that's why your project does not work when you run it from the IDE.

    UPDATE 7/30/2019

    As per Giorgio:

    They have added a checkbox in the Application Run Configuration to "Include dependencies with 'Provided' scope"

    0 讨论(0)
提交回复
热议问题