用python簡單編程例子,2.SpringBoot的入門例子

 2023-11-09 阅读 31 评论 0

摘要:? 用python簡單編程例子, 查看pom.xml文件,剛才選擇web,導入的依賴包 增加一個package,叫controller python 例子? 在controller的package里面增加一個接口叫做HelloContrllor 代碼:https://github.com/NIGHTFIGHTING/spring_boot_learning/tre

?

用python簡單編程例子,

查看pom.xml文件,剛才選擇web,導入的依賴包

增加一個package,叫controller

python 例子?

在controller的package里面增加一個接口叫做HelloContrllor

代碼:https://github.com/NIGHTFIGHTING/spring_boot_learning/tree/master/01

package com.liuqi.boot.liuqiboothelloworld.controller;import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;@RestController
public class HelloController {@GetMapping("/home")public String Home() {return "hello liuqi!\n";}
}
#默認spring boot端口8080
curl http://127.0.0.1:8080/home

IDEA如何配置SpringBoot項目

python入門案例?https://jingyan.baidu.com/article/f0062228e64b7cbbd3f0c8cc.html

?

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/1/169474.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息