gradle compile and run jar

Three ways to run the Springboot project

  • java -jar xxx.jar
  1. First, build the gradle build in the root directory of the project in cmd.After success, generate the jar package in the project's build / libs
  2. Then execute java -jar xxx.jar
  • gradle bootRun executes gradle bootRun
    directly in the project directory in cmd to run the project
  • Right click on the project run application in idea or eclipse
Published 34 original articles · Likes0 · Visits 1089

Guess you like

Origin blog.csdn.net/qq_42634696/article/details/105106567