审查视图

src/main/java/com/sy/controller/TestController.java 593 字节
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package com.sy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhangfan
 * @web www.sy.com
 * @company 郑州商友科技有限公司
 * @time 2018-11-20 11:12
 */
@Controller
public class TestController {

    @RequestMapping("/index")
    public String toindex() {
        return "hello springBoot";
    }

    @RequestMapping("/hello")
    public String toHello() {
        return "hello";
    }

    @RequestMapping("/welcome")
    public String toWelcome() {
        return "Welcome";
    }

}