@responseBody
public string text(){
return "index";
}
如果想跳转页面,就直接return “index”;
如果想传值,就要在方法前面加上@responseBody