package com.hzjc.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
//自己的控制器类实现了Controller接口
public class HelloWordController implements Controller {
	//重写了接口的方法:handleRequest,该方法用来处理请的逻辑
	@Override
	public ModelAndView handleRequest(HttpServletRequest arg0,
			HttpServletResponse arg1) throws Exception {
		System.out.println("hello world in Controller");
		//ModelAndView对象代表的是视图信息对象,Spring MVC通过该对象封装的信息去跳转到相应的View
		return new ModelAndView("/index");//这里结合配置文件的配置。表示跳转到根路径下的index.jsp页面
	}
}
 最近下载更多
最近下载更多
                
                姜广坤     LV14
                2023年3月19日
            
            
        
                a1677596408     LV23
                2022年7月1日
            
            
        
                明年MF     LV3
                2021年8月1日
            
            
        
                失落的小象     LV10
                2021年6月22日
            
            
        
                qubin_522     LV7
                2021年2月25日
            
            
        
                抑郁男孩     LV3
                2020年11月20日
            
            
        
                wlpeamp111     LV1
                2020年9月2日
            
            
        
                zhangbin1997     LV1
                2020年8月21日
            
            
        
                li3603364     LV2
                2020年8月2日
            
            
        
                Leasing     LV1
                2020年6月20日
            
            
         最近浏览更多
最近浏览更多
                
                微信网友_7289626841501696     LV4
                6月12日
            
            
        
                dapeng0011     LV15
                2024年7月16日
            
            
        
                lymit1024     LV4
                2024年6月24日
            
            
        
                irivn007     LV15
                2023年10月19日
            
            
        
                peanut_666     LV1
                2023年8月30日
            
            
        
                凡     LV1
                2023年7月28日
            
            
        
                不嘻嘻     LV8
                2023年6月12日
            
            
        
                1379585889     LV11
                2023年6月7日
            
            
        
                苏拉德666     LV4
                2023年5月18日
            
            
        
                1455384106     LV2
                2023年5月8日
            
            
        
 
                 
                 
                