- package cn.cfs.springmvc.controller;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- @Controller
- public class HomeController{
- @RequestMapping(value={"/","home"})
- public String test(){
- System.out.println("进来了......");
- return"index";
- }
- }
来源: