首页>代码>spring boot+mybatis+mysql基础配置实现部门数据增加查询更新功能>/springboot-demo/src/main/java/com/controller/HelloController.java
package com.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName: com.controller
 * @Description: 
 * @Version: 1.0.0
 */
@RestController		//相当于Controller  RestController该类中所有方法默认返回JSON
@RequestMapping("hello")
public class HelloController {

	/**
	 * spring boot演示hello
	 * @return
	 */
	@RequestMapping("hello")//URL映射
	public String hello(){
		return "hello word";
	}
}
最近下载更多
yy1124218793  LV9 2月8日
wj3679  LV13 1月16日
a1677596408  LV23 1月13日
云着殇  LV9 2024年6月5日
skook7  LV2 2023年12月14日
cheung524071  LV8 2023年8月23日
2017143155  LV12 2023年8月3日
luoyongbing  LV8 2023年4月25日
starmomom  LV10 2023年3月14日
18120344519  LV4 2023年3月7日
最近浏览更多
gann2015  LV25 6月6日
哪里的完整版  LV8 2月27日
yy1124218793  LV9 2月8日
a1677596408  LV23 1月13日
TY0165  LV20 2024年6月24日
17380184110 2024年6月20日
暂无贡献等级
不正经的90后程序猿  LV1 2024年6月1日
1941549176  LV4 2024年4月29日
860421  LV3 2024年4月18日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友