Everytime I try to run spring boot app configured with JSP I get this error:
java.lang.NoClassDefFoundError: javax/servlet/ServletContext
at java.lang.Class.
There's a bug in IntelliJ that means that provided dependencies aren't added to the classpath. Assuming you want to stick with IDEA, you have a few options:
mvn spring-boot:run
provided
from the pom. This will mean that app can't be deployed as a war to Tomcat or similarEDIT: The bug is fixed and the server will start normally, as long as you tick the Include dependencies with "Provided" scope checkbox in the run configuration, below classpath.