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

前端 未结 6 1485
不知归路
不知归路 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:18

    I've had the same issue today. I am also new at Spring so I didn't know where to start. After a long day I managed to find the answer:

    My default.xml file was wrong. I had done some manual refactoring and that caused all the trouble. This is an example of what was wrong:

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    As you can see I had the wrong value in the last definition "extends" value. I discovered this downgrading from tiles3.TilesViewResolver to tiles2.TilesViewResolver and that provided a more helpful error message.

提交回复
热议问题