-
@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); } }
Spring boot 梳理 - 配置eclipse集成maven,并开发Spring boot hello
猜你喜欢
转载自www.cnblogs.com/jiangtao1218/p/10125125.html
今日推荐
周排行