Spring boot 梳理 - 配置eclipse集成maven,并开发Spring boot hello
-
@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); } }