I tried to build a maven multi-module web project:

`project A, project B, ...`

**B** dependent on **A**

run project **B**, the console shown than `/hello` were mapped, but `hello.jsp` not found when check `localhost:8080/hello`

here are my questions:

1. how did i use hello.jsp（resources in **A**）while running project B?
2. how to tell spring load resources from directory `src/main/resources/`?

**structure A/B**

```
A/B
|_src
|  |_main
|  |   |_java
|  |   |  |_com.x
|  |   |  |  |_AStarter.java/BStarter.java 
|  |   |  |_com.x.domain
|  |   |  |_com.x.services
|  |   |  |_com.x.web
|  |   |     |_HelloController.java/FooController.java
|  |   |_resources
|  |      |_application.properties
|  |      |_templates
|  |         |_hello.jsp
|  |_test
|      |_java
|      |_resources
|_pom.xml  

```

(A)pom.xml were a simple spring-boot like file.
(B)pom.xml similar to (A)pom.xml just add a dependency:

```
<dependency>
    <groupId>X</groupId>
    <artifactId>A</artifactId>
    <version>0.0.1-SNAPSHOT</version>
</dependency>

```

application.properties:
 spring.view.suffix: .jsp

---

**update** 

Starters:

```
@Configuration
@EnableAutoConfiguration
@ComponentScan
public class AStarter extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder application) {
        return application.sources(AStarter.class);
     }
    public static void run(Class<? extends AStarter> c, String[] args) {
        SpringApplication.run(c, args);
    }
    public static void main(String[] args) throws Exception {
        run(AStarter.class, args);
    }
}

@Configuration
@EnableAutoConfiguration
@ComponentScan
public class BStarter extends AStarter {
    public static void main(String[] args) {
        AStarter.run(BStarter.class, args);
    }
}

```

Controllers:

```
@Controller
public class HelloController {
    private String message = "Hello World";
    @RequestMapping("/hello")
    public String welcome(Map<String, Object> model) {
        model.put("time", new Date());
        model.put("message", this.message);
        return "hello";
    }
}

@Controller
public class FooController {
    @RequestMapping("/foo")
    public String foo(Map<String, Object> model) {
        model.put("foo", "foo!");
        return "foo";
    }
}

```

console:

```
--- {main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/foo],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.x.FooController.foo(java.util.Map<java.lang.String, java.lang.Object>)
--- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hello],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.x.web.HelloController.welcome(java.util.Map<java.lang.String, java.lang.Object>)
--- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
--- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[text/html],custom=[]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)

```

**when i check localhoust:8080/hello, error came out**
![enter image description here](https://i.stack.imgur.com/BfDZf.png)

Thanks in advance！