第一个SpringBoot程序

1. 网页生成代码: https://start.spring.io/


2. 解压并导入IDEA



//命令行启动
terminal:
C:\Users\q8207\Desktop\hello-spring>curl http://localhost:8080/actuator/health
{"status":"UP"}
C:\Users\q8207\Desktop\hello-spring>curl http://localhost:8080/hello

mvn clean package -Dmaven.test.skip

cd target
java -jar hello.jar 没有orient

运行效果

posted @ 2020-02-19 21:50  Tony小哥  阅读(124)  评论(0编辑  收藏  举报