Running Springboot web app in IntelliJ Idea Community Edition

When you run your springboot application in IntelliJ idea Community Edition having the following error, you can try the solution below to solve the problem.

Error "Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer"

If your "pom.xml" has dependency with "provided" scope, you may have trouble when running your application in IntelliJ Idea Community Edition.

<dependency>   
  <groupId>org.springframework.boot</groupId>   
  <artifactId>spring-boot-starter-tomcat</artifactId>   
  <scope>provided</scope>
</dependency>

Some suggests that you can change the scope from "provided" to "compile". Here is another solution for this issue:


In your "Run/Debug Configurations", check "Include dependencies with 'Provided' scope". Then you can run the application from IntelliJ Idea Community Edition.

Comments

Popular posts from this blog

Java encoding : UTF-8, Big5, x-MS950-HKSCS