언어/Java

spring boot compile

newlibra 2023. 12. 18. 18:31

--gradle

--change port

gradlew.bat bootRun --args='--server.port=8081'

(./gradlew build)

(java -jar build/libs/gs-rest-service-0.1.0.jar)

 

./gradlew :eureka-service:bootRun
./gradlew :eureka-client:bootRun

 

--maven

./mvnw spring-boot:run

(./mvnw clean package)

(java -jar target/gs-rest-service-0.1.0.jar)

 

./mvnw spring-boot:run -pl eureka-service
./mvnw spring-boot:run -pl eureka-client

 

--git download

git clone https://github.com/spring-guides/gs-rest-service.git

 

GitHub - spring-guides/gs-rest-service: Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring.

Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring. - GitHub - spring-guides/gs-rest-service: Building a RESTful Web Service :: Learn how to create a RESTful we...

github.com