-
@RestController @EnableAutoConfiguration public class App { @RequestMapping("/hello") public HashMap<String,String> hello(){ HashMap<String,String> result=new HashMap<String,String>(); result.put("name", "jt"); return result; } public static void main( String[] args ) { SpringApplication.run(App.class, args); } }