package com.dzpykj.jump; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import com.dzpykj.jump.service.ITestService; @Controller @RequestMapping("/test") public class TestController { @Autowired ITestService testService; @RequestMapping("/jump") public ModelAndView jump( String name){ ModelAndView mav = new ModelAndView(); mav.setViewName("test"); mav.addObject("name",name); return mav; } }
org.eclipse.wst.common.component