首页>代码>springboot入门之hello world(小白必看)>/springboot_helloWorld/src/main/java/com/ms/springboot/HelloController.java
package com.ms.springboot; import java.util.HashMap; import java.util.Map; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller public class HelloController { @RequestMapping("hello") @ResponseBody public Map<String, Object> showHello(){ Map<String, Object> map=new HashMap<String, Object>(); map.put("msg", "HelloWorld"); return map; } }

gxpcwm LV22
2022年4月6日
dapeng0011 LV10
2021年8月6日
whfuai LV14
2021年8月5日
haishen LV8
2021年7月13日
hahazxy LV14
2021年6月30日
15827485252 LV19
2020年5月20日
Tunduswith LV15
2020年3月19日
1051378174 LV1
2019年11月10日
koumeiyuu LV8
2019年9月12日
shunwei LV7
2019年9月11日