首页>代码>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日
最近浏览更多
漫步的海星  LV4 9月26日
爱吃鱼的猫Vital  LV6 7月24日
阿达asdw1  LV4 5月9日
hzhsh0223  LV18 2月11日
yohohero  LV1 1月14日
张扬扬109  LV8 2022年11月20日
tammyjia 2022年8月29日
暂无贡献等级
MMENGDI  LV13 2022年8月16日
Tom-TAO  LV1 2022年7月23日
welcome丶  LV8 2022年6月28日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友