package com.powernode.springboot.web;
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 IndexController {
@RequestMapping(value="/say")
public @ResponseBody String say(){
return "say:Hello Springboot!";
}
@RequestMapping(value="/mapvalue")
@ResponseBody
public Map<String,Object> mapvalue(){
Map<String,Object> retMap = new HashMap<String, Object>();
retMap.put("message","Springboot Project!");
return retMap;
}
}