When a Spring boot application launched by Intelij Idea views cannot be resolved

I came across a strange situation whose solution I can’t find. I am running a simple demo application using Spring Boot 1.3.0 and Intelij Idea 14.1.3

The problem is that Spring MVC can not resolve the view:

javax.servlet.ServletException: Could not resolve view with name 'home' in servlet with name 'dispatcherServlet'

The weird thing is that when you start the Maven Spring Boot-plugin application

mvn clean spring-boot:run

everythig works fine.

Both types ("home.jsp" - return from the controller and "start.jsp" - are described in the configuration class) are resolved correctly.

You can see the full source code here.

I downloaded another demo project - the same situation.

, , - IDE. - .

- >

Spring - "", , "".

, IDE?

+2
1

pom.xml

<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>

<scope>provided</scope> <scope>compile</scope>, .

+4

All Articles