?? unreadentriescontroller.java.svn-base
字號:
package com.google.code.rsser.web.controller;import java.util.HashMap;import java.util.Map;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestMethod;import org.springframework.web.servlet.ModelAndView;import com.google.code.rsser.service.EntryService;import com.google.code.rsser.service.UserService;@Controller@RequestMapping(value = "/unread.html")public class UnreadEntriesController extends AbstractPreparedController { @Autowired protected EntryService entryService; @Autowired protected UserService userService; @RequestMapping(method = RequestMethod.GET) public ModelAndView unreadAction() { Map<String, Object> model = new HashMap<String, Object>(); model.put("entries", entryService.getUnread(userService.getCurrent())); return new ModelAndView("unread-entries", model); }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -