TestApiController.java 591 Bytes
package com.yoho.search.consumer.test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

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

@Controller
public class TestApiController {
	
	@RequestMapping(value = "/test")
	@ResponseBody
	public Map<String, Object> test() {
		Map<String,Object> testResult = new HashMap<String, Object>();
		testResult.put("data", null);
		testResult.put("code", 200);
		testResult.put("message", "success");
		return testResult;
	}
}