Tiles 2 And No mapping found for HTTP request with URI - Spring-MVC

后端 未结 3 1002
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 00:07

I want to use Spring-Tiles intergration. Here you can see how my app looks like.

So my question is: why Spring-MVC dispatcher Servlet can not resolve my Target page

3条回答
  •  时光说笑
    2020-12-04 00:47

    I think you're missing a critical ViewResolver. I checked the post you mentioned in SpringSource but I didn't see the following ViewResolver:

    org.springframework.web.servlet.view.tiles2.TilesViewResolver
    

    Try adding that ViewResolver and see if that would help. I use Spring and Tiles as well. I just have to declare that and the TilesConfigurer.

    Check out these references:

    • Add TilesViewResolver to enable fallback if tiles definition does not exist

    • TilesViewResolver

提交回复
热议问题