package com.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.json.MappingJackson2JsonView;

@Controller
public class GeneralController {

    @RequestMapping(value = "/index.html")
    public void index_jsp(Model model) {
        model.addAttribute("str0121", "Hellow world");
        System.out.println("index1.jsp");

    }

    @ResponseBody
    @RequestMapping(value = "/index.json")
    public ModelAndView doJson(Model model) {
        model.addAttribute("str0121", "Hellow world");
        System.out.println("json");
        Map<String, String> map = new HashMap<String, String>();
        map.put("result", "success");
        return new ModelAndView(new MappingJackson2JsonView(), map);

    }
}

@@ -452,16 +452,27 @@
 ller %7B%0A%0A
+    //%E9%BB%98%E8%AE%A4%E8%B7%B3%E8%BD%AC%0A
     @Req
@@ -652,16 +652,31 @@
 %0A    %7D%0A%0A
+    //%E8%BF%94%E5%9B%9Ejson%E6%95%B0%E6%8D%AE%0A
     @Res

test sshKEY