admin管理员组

文章数量:1612098

参考自:https://blog.csdn/wthfeng/article/details/52742830

错误原因:使用SpringMVC视图解析器进行页面跳转时,请求路径和视图名相同。

解决:更改请求路径或视图名即可

页面路径:

请求路径和视图名
@Controller
@RequestMapping(value = "/test")
public class TestView {

	// 请求路径,应修改为hello_world或其他
	@RequestMapping(value = "/helloWorld", method = RequestMethod.GET)
	public String courseInfo() {
		// 视图名
		return "test/helloWorld";
	}

}

本文标签: pathhtmlcircularViewhandler