본문 바로가기
언어/Java

spring boot compile

by newlibra 2023. 12. 18.

--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

 

'언어 > Java' 카테고리의 다른 글

Java - Future  (0) 2025.01.21
compile & run  (0) 2024.08.23
tomcat  (0) 2024.07.08
GraalVM  (0) 2024.07.04
람다....  (0) 2024.06.11