基于springboot和mybatis的RealWorld后端项目实战一之hello-springboot
创始人
2025-01-08 21:34:57
0

新建Maven项目

注意archetype选择quickstart
在这里插入图片描述

pom.xml

在这里插入图片描述
在这里插入图片描述

修改App.java

在这里插入图片描述

App.java同级目录新增controller包

在这里插入图片描述

HelloController.java

package org.example.controller;  import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController;  @RestController @RequestMapping("hello") public class HelloController {      @GetMapping("/show")     public String sayHello(){         return "helloworld";     } }  

启动服务

浏览器输入

http://localhost:8080/hello/show 

在这里插入图片描述

相关内容

热门资讯

透视数据!菠萝德州透视脚本,p... 透视数据!菠萝德州透视脚本,pokerworld辅助器,解密教程(有挂黑科技);小薇(透视辅助)致您...
透视中牌率!aapoker能控... 透视中牌率!aapoker能控制牌吗,aapoker透视方法,教你教程(有挂攻略)1、aapoker...
透视玄学!wepoker私人局... 透视玄学!wepoker私人局俱乐部怎么进,wepoker怎么拿到好牌(都是真的是有挂)1.wepo...
透视透视!hhpoker德州机... 透视透视!hhpoker德州机器人,hhpoker怎么破解,wpk教程(有挂详情)所有人都在同一条线...
透视辅助!佛手大菠萝有挂吗,红... 透视辅助!佛手大菠萝有挂吗,红龙poker有辅助吗,切实教程(有挂辅助);1、佛手大菠萝有挂吗系统规...
透视脚本!we poker辅助... 透视脚本!we poker辅助器下载,wepoker有辅助工具吗(其实存在有挂);1、金币登录送、破...
透视透视!aapoker透视怎... 透视透视!aapoker透视怎么用,aapoker公共底牌,攻略教程(有挂教程);1、aapoker...
透视透视!hhpoker怎么破... 透视透视!hhpoker怎么破解,hhpoker有透视功能吗,详细教程(有挂攻略);1、游戏颠覆性的...
透视了解!poker worl... 透视了解!poker world辅助器,扑克之星辅助,必胜教程(有挂攻略)1、poker world...
透视能赢!wepoker免费透... 透视能赢!wepoker免费透视,wepoker软件辅助程序(竟然是有挂)1、wepoker软件辅助...