Java, Spring, Apache Tiles error : Could not resolve view with name 'index' in servlet with name 'dispatcher'

前端 未结 6 1486
不知归路
不知归路 2021-01-13 06:57

I\'m new to Tiles and Spring MVC (I looked through several similar issues but found no solution for \'my problem\')

controller:

@Controller
public cl         


        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 07:08

    The problem lies in the project location.

    A combination of jetty, apache tiles and spring's view resolver does not work when there is a space in the location.

    For ex : a project location - D:\folder whitespace\your_project will throw the above error -Could not resolve view with name 'index' in servlet with name 'dispatcher'

    Solution - Please change your project location to a path with no space in it.

提交回复
热议问题