예제 #1
0
 private void loadImportantMessages(Model model) {
   try {
     model.addAttribute("importantMessages", messageService.getImportantMessages());
   } catch (Exception e) {
     log.error("Unable to load important messages");
   }
 }
예제 #2
0
 private void loadMotd(Model model) {
   try {
     model.addAttribute("motd", messageService.getMotd());
   } catch (Exception e) {
     log.error("Unable to load MOTD");
   }
 }