📄 abstractpreparedcontroller.java.svn-base
字号:
package com.google.code.rsser.web.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.ModelAttribute;import com.google.code.rsser.model.User;import com.google.code.rsser.service.EntryService;import com.google.code.rsser.service.UserService;public class AbstractPreparedController { @Autowired private EntryService entryService; @Autowired private UserService userService; @ModelAttribute("unreadEntries") public Integer populateUnreadEntriesCounter() { User user = userService.getCurrent(); return user != null ? entryService.getUnread(user).size() : 0; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -