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

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

    Try to change the return value of IndexController.index() from "/WEB-INF/jsp/index.jsp" to "index". This works for me:

    @RequestMapping("/index")
    public String index() {
        return "index";
    }
    

提交回复
热议问题