PermissionController.java 566 字节
package com.tianbo.controller;

import com.tianbo.model.Role;
import com.tianbo.model.Users;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/permission")
public class PermissionController {

    @RequestMapping("list")
    public ModelAndView listView(@ModelAttribute Role role){

        return  new ModelAndView("permission/list","role",role);
    }
}