Can’t find the index page

Asked

Viewed 40 times

1

PROBLEM

When running the project you are not finding the index.jsp. view I am using RESTFUL and WEB in spring boot.

ERROR

o.s.w.s.r.ResourceHttpRequestHandler     : Path with "WEB-INF" or "META-INF": [WEB-INF/jsp/index.jsp]

appplication.properties

spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp
server.servlet.contextPath=/erp-rs

Indexcontroller

@Controller
@RequestMapping("/")
public class IndexController {

    @RequestMapping("/")
    public String index() {
        return "index";
    }

1 answer

1


If you are using Tomcat with JSP you will have to put this dependency in pom.xml

<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-jasper</artifactId>
</dependency>
  • Thank you! Everything ok.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.