userslistcontroller.java
来自「google的开源项目」· Java 代码 · 共 25 行
JAVA
25 行
package com.google.code.rsser.web.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.ui.ModelMap;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestMethod;import com.google.code.rsser.service.UserService;@Controller@RequestMapping(value = "/admin/users/list.html")public class UsersListController { @Autowired protected UserService userService; @RequestMapping(method = RequestMethod.GET) public String indexAction(ModelMap model) { model.addAttribute("users", userService.findAll()); return "usersList"; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?