package com.agentdriving.user.modular.system.controller; import com.agentdriving.user.core.base.controller.BaseController; import com.agentdriving.user.modular.system.service.INoticeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import java.util.List; import java.util.Map; /** * 总览信息 * * @author fengshuonan * @Date 2017年3月4日23:05:54 */ @Controller @RequestMapping("/blackboard") public class BlackboardController extends BaseController { @Autowired private INoticeService noticeService; /** * 跳转到黑板 */ @RequestMapping("") public String blackboard(Model model) { List> notices = noticeService.list(null); model.addAttribute("noticeList", notices); return "/blackboard.html"; } }