?? abstractpreparedcontroller.java
字號:
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 + -