package cn.edu.nju.controller;

import cn.edu.nju.model.ResultModel;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    private static Logger logger = Logger.getLogger(TestController.class);

    @RequestMapping("/test")
    @ResponseBody
    public ResultModel test() {
        // 记录info级别的信息
        logger.info("This is info message.");
        // 记录error级别的信息
        logger.error("This is error message.");

        return new ResultModel(true, "test application!!!");
    }
}

@@ -47,25 +47,21 @@
 nju.
-model
+vo
 .Result
-Model
+Info
 ;%0Aim
@@ -448,21 +448,20 @@
 c Result
-Model
+Info
  test() 
@@ -633,13 +633,12 @@
 sult
-Model
+Info
 (tru

update TestController