Wednesday, October 23, 2019

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.

No comments:

Post a Comment

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...