RoleController.java 598 字节
package com.tianbo.controller;

import com.tianbo.controller.base.BaseController;
import com.tianbo.model.Role;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/role")
public class RoleController {


    @RequestMapping("list")
    public String listView(){
        return "role/list";
    }

    @RequestMapping("add")
    public ModelAndView add(){
        Role role = new Role();

        return new ModelAndView("role/add","role",role) ;
    }
}