I know, there are a lot of such questions, but I've read all of the answers and they didn't help me.

I become 404 error all the time I try to get my jsp from controller.

My web.xml:

```
    <?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">

    <servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>dispatcher</servlet-name>
        <url-pattern>*.html</url-pattern>
        <url-pattern>*.htm</url-pattern>
        <url-pattern>*.json</url-pattern>
        <url-pattern>*.xml</url-pattern>
    </servlet-mapping>

</web-app>

```

(I tried to use just one `<url-pattern>/</url-pattern>` too, it didn't help.)

My dispatcher-servlet.xml:

```
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <context:component-scan base-package="olegshan.agg.jba.controller"/>

</beans>

```

My IndexController.java:

```
package olegshan.agg.jba.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping("/index")
    public String index() {
        return "/WEB-INF/jsp/index.jsp";
    }
}

```

When I type into my address line, for example, `http://localhost:8080/index.html` it doesn't work, I become 404.

I still can't rich my index.jsp even by typing direct in address line `http://localhost:8080/WEB-INF/jsp/index.jsp` — I become 404 error.

I can rich the files from my web folder, for example `http://localhost:8080/hello.jsp` and it works OK. But when I ask my Controller method to return this file as following: `return "/hello.jsp";`it still doesn't work.

I use Spring 4.2.5, Tomcat 8.0.33, Intellij Idea 2016.1.1.

Please, help me.