新人小白问下webxml要怎么配置才能访问到页面
我的控制器
package com.ccc.shiyan;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/text")
public class ceshio {
@RequestMapping(params="method=view")
public String view(HttpServletRequest request,HttpServletResponse response) throws Exception{
System.out.println("1");
return "index";
}
}
我的页面访问 http://127.0.0.1:8080/shiyan/text?method=view
出现以下问题
HTTP Status 404 - /shiyan/text
type Status report
message /shiyan/text
description The requested resource is not available.
Apache Tomcat/7.0.82