ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๋ฐ˜์‘ํ˜•

1. ํ”„๋กœ์ ํŠธ ํด๋ก 

https://github.com/spring-projects/spring-petclinic

 

spring-projects/spring-petclinic

A sample Spring-based application. Contribute to spring-projects/spring-petclinic development by creating an account on GitHub.

github.com

 

 

์ธํ…”๋ฆฌ์ œ์ด๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ๊ฐ€์ ธ์˜จ๋‹ค

 

2. ํ”„๋กœ์ ํŠธ ๋นŒ๋“œ

./mvnw package๋ผ๊ณ  ์•Œ๋ ค์ฃผ์…จ๋Š”๋ฐ ๋‚˜๋Š” ์œˆ๋„์šฐ ์‚ฌ์šฉ์ž๋ผ .\mvnw package๋ผ๊ณ  ์ณ์•ผ ์‹คํ–‰์ด ๋๋‹ค.

์˜์กด์„ฑ์„ ๋ฐ›๋Š”๋ฐ ์‹œ๊ฐ„์ด ๊ฝค ๊ฑธ๋ ธ๋‹ค

BUILD SUCCESS!

 

 

3. ํ”„๋กœ์ ํŠธ ์‹คํ–‰

java -jar ์ž๋ฅดํŒŒ์ผ ์‹คํ–‰ ๋ช…๋ น์–ด

์ ‘๊ทผ์ด ์•ˆ๋œ๋‹ค๊ณ  ๋‚˜์˜จ๋‹ค. 

์งˆ๋ฌธํ•˜๊ธฐ์—์„œ ๋Œ“๊ธ€์„ ๋ดค๋Š”๋ฐ git bash๋กœ ๋ฐ”๊ฟ”์ฃผ๋ฉด ๋œ๋‹ค๊ธฐ์— ๋ฐ”๊ฟจ๋‹ค.

https://yeahajeong.tistory.com/158

 

์ธํ…”๋ฆฌ์ œ์ด terminal์—์„œ git bash ์‚ฌ์šฉํ•˜๊ธฐ

ctrl + alt + s ์„ค์ •์ฐฝ ์—ด๊ธฐ terminal ๊ฒ€์ƒ‰ shell path์— ํ˜„์žฌ pc์— git bash๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋Š” ๊ฒฝ๋กœ๋ฅผ "D:\Program Files\Git\bin\sh.exe" --login -i ๋กœ ๋ฐ”๊ฟ”์ค€๋‹ค. Apply ์ ์šฉํ•˜๊ณ  alt +F12๋กœ ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ์—ด๋ฒˆ..

yeahajeong.tistory.com

๊ทธ๋ž˜๋„ ๋˜์ง€์•Š๋Š”๋‹ค.

target์œ„์น˜์— jarํŒŒ์ผ์ด ์ž˜ ์žˆ๋Š”๋ฐ ์™œ์•ˆ๋˜๋Š”๊ฑฐ๋ƒ๊ณ 

์ด๋™ํ•ด์„œ ์‹คํ–‰ํ•ด๋„ ์•ˆ๋ผ

ํŒŒ์ผ๋ช…์„ ์ „๋ถ€ ์ž…๋ ฅํ•ด์„œ ํ–ˆ๋”๋‹ˆ ๋œ๋‹ค. ์ฉ ์™œ์•ผ?

port๋ฒˆํ˜ธ 8080

localhost:8080 ๋“ค์–ด๊ฐ€๋ฉด ์ž˜ ์‹คํ–‰๋œ๋‹ค. 

 

 

4. ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜

์ข…๋ฃŒ - ctrl + c

์‹คํ–‰

๋ฉ”์ธ ๋ฉ”์„œ๋“œ ์‹คํ–‰

shift + ctrl + F10

๋ฐ˜์‘ํ˜•
๋Œ“๊ธ€