发表于: 2017-11-14 21:52:00

1 806


今天完成的事

写完了整个cs10的页面程序。但是不严谨,因为遇到点小bug。先贴上来吧。

整体结构。

Controller

@Controller
public class TaskController{

private Logger logger=Logger.getLogger(TaskController.class);

   @Resource
   private FeatureService featureService;
   @Resource
   private ProfessionService professionService;
   @Resource
   private StudentService studentService;

   //遍历所有Feature
   @RequestMapping(value = "/index",method = RequestMethod.GET)
public String List(Model model){

List<Feature> features=featureService.getAll();
       model.addAttribute("features",features);
       logger.trace("加载修真院特色。。。");


       List<Student> students=studentService.getAll();
       model.addAttribute("students",students);
       logger.trace("加载优秀学员。。。");

       return "cs10";

   }



遇到的问题

我IDEA里面js的图标

别人IDEA里面js的图标

我们不一样!

这是因为啥啊。。。这是文件格式的事也不应该缺少依赖啊。。。

收获

重新构一遍项目感觉熟悉了好多啊。。。

明天的计划

任务四




返回列表 返回列表
评论

    分享到