1. 网页生成代码: https://start.spring.io/
2. 解压并导入IDEA
//命令行启动
terminal:
C:Usersq8207Desktophello-spring>curl http://localhost:8080/actuator/health
{"status":"UP"}
C:Usersq8207Desktophello-spring>curl http://localhost:8080/hello
mvn clean package -Dmaven.test.skip
cd target
java -jar hello.jar 没有orient
运行效果
打赏