sping全家桶笔记

1.curl

用于在终端命令模式下访问一个URL地址

例如在idea的Terminal中访问URL,健康检查(需要加入actuator依赖)curl http://localhost:8080/actuator/health

得到{"status":"UP"},如果得到down,则是有问题。

再例如访问一个映射的restful接口地址,curl http://localhost:8080/hello

2.命令行打包

打包 跳过测试
mvn clean package -Dmaven.test.skip
执行
java -jar helloworld-0.0.1-SNAPSHOT.jar

猜你喜欢

转载自www.cnblogs.com/yunqing/p/10371971.html
今日推荐