โœ๐Ÿป์ตœ์‹ ๊ธ€

  • Suggestion ๋ธ”๋Ÿญ ๋‚ด์— ์ฝ”๋“œ ๋ธ”๋Ÿญ ์ž‘์„ฑํ•˜๊ธฐ

    ์„œ๋ก  ์ตœ๊ทผ ํด๋ฆฐ์ฝ”๋“œ ์Šคํ„ฐ๋””๋ฅผ ์ง„ํ–‰ํ•˜๋ฉฐ ๊ฒช์—ˆ๋˜ ์ผ์ด์—ˆ์Šต๋‹ˆ๋‹ค. ```java boolean isVisited = false; ``` ์œ„์ฒ˜๋Ÿผ ๋ฐฑํ‹ฑ(`) 3๊ฐœ๋กœ ์ฝ”๋“œ๋ฅผ ๊ฐ์‹ธ๋Š” ๊ฒƒ์„ ์ฝ”๋“œ ๋ธ”๋Ÿญ์ด๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ```suggestion ```java boolean isVisited = false; ``` ``` Pull Request์— ์ฝ”๋“œ ๋ธ”๋Ÿญ์„ ํฌํ•จํ•œ Suggestion์„ ๋“ฑ๋กํ–ˆ์œผ๋‚˜ ๋ฐฑํ‹ฑ(`)์ด ์ œ๋Œ€๋กœ ๋™์ž‘ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ์›์ธ ```suggestion # suggestion ๋ธ”๋Ÿญ ์‹œ์ž‘ ```java boolean isVisited = false; ``` #..

  • [SpringBoot] Intellij spring boot ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ๋ฐฉ๋ฒ•

    ์„œ๋ก  Intellij IDE๋ฅผ ์ด์šฉํ•ด Spring Boot ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์ƒ์„ฑ ๋ฐฉ๋ฒ• 1. ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ Intellij ์ตœ์ดˆ ์‹คํ–‰ ์‹œ, [New Project]๋ฅผ ์„ ํƒํ•˜๊ฑฐ๋‚˜ ์œ„ ์‚ฌ์ง„์ฒ˜๋Ÿผ [File] - [New] - [Project]๋ฅผ ์„ ํƒํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. 2. Spring Initialzr ์„ ํƒํ•˜๊ธฐ Spring Initializr๋ฅผ ์„ ํƒํ•˜๊ณ  ์„ค์ •๊ฐ’์„ ์ ์–ด์ค๋‹ˆ๋‹ค. ์ €๋Š” Maven ๋Œ€์‹  Gradle๊ณผ Java ๋ฒ„์ „ 11์„ ์„ ํƒํ–ˆ์Šต๋‹ˆ๋‹ค. Maven์—์„œ Gradle๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ๊ฝค..

  • ์„œ๋ฒ„๋Š” ์–ด๋–ป๊ฒŒ ๋Š˜๋ ค์•ผํ• ๊นŒ?

    ์„œ๋ก  ํ”ํžˆ ์•Œ๊ณ  ์žˆ๋Š” "ํŠธ๋ž˜ํ”ฝ์ด ์ฆ๊ฐ€ํ•˜๋ฉด ์„œ๋ฒ„๋ฅผ ๋Š˜๋ฆฐ๋‹ค"์—์„œ ๊ทธ์น˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ์–ด๋–ป๊ฒŒ ์„œ๋ฒ„๋ฅผ ๋Š˜๋ฆฌ๋Š”์ง€ ๊ทธ ๋ฐฉ๋ฒ•์€ ์–ด๋–ค ๊ฒƒ์ด ์žˆ๋Š”์ง€ ๊ถ๊ธˆํ•˜์—ฌ ํฌ์ŠคํŒ…ํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํŒ€๊ตฌ๋ผ๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ์ฑ„ํŒ… ์„œ๋ฒ„์— ์•ฝ 40๋ช… ์ •๋„์˜ ์ธ์›์ด ๋™์‹œ์— ์ฑ„ํŒ…์„ ์—ฐ์‚ฌ ํ•œ ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค. t2.micro ์„œ๋ฒ„์˜€์ง€๋งŒ ๊ฑฐ๋œฌํ•˜๋”๋ผ๊ตฌ์š”. ๊ทธ๋•Œ ๋Š๋‚€ ์ ์ด "๋‚ด ์ƒ๊ฐ๋ณด๋‹ค ์„œ๋ฒ„๋Š” ํŠผํŠผํ•˜๋‹ค"์™€ "๋Œ€์ฒด ์–ผ๋งˆ๋‚˜ ๋งŽ์€ ํŠธ๋ž˜ํ”ฝ์ด ์žˆ์–ด์•ผ ํ„ฐ์งˆ๊นŒ?"์˜€์Šต๋‹ˆ๋‹ค...

  • SSAFY ์ˆ˜๋ฃŒ ํ›„๊ธฐ (feat. ์ค‘๋„ํ‡ด์†Œ)

    ์„ฑ๊ณผ ํ”„๋กœ์ ํŠธ ์„ฑ๊ณผ 1ํ•™๊ธฐ ๊ด€ํ†ต ํ”„๋กœ์ ํŠธ ์šฐ์ˆ˜์ƒ(2๋“ฑ) 2ํ•™๊ธฐ ๊ณตํ†ต ํ”„๋กœ์ ํŠธ ์šฐ์ˆ˜์ƒ(2๋“ฑ) 2ํ•™๊ธฐ ๊ณตํ†ต ํ”„๋กœ์ ํŠธ UCC ์šฐ์ˆ˜์ƒ(4๋“ฑ) 2ํ•™๊ธฐ ํŠนํ™” ํ”„๋กœ์ ํŠธ SSDC ์˜คํ”ˆ์†Œ์Šค ์‚ผ์„ฑ ๋ฆฌ์„œ์น˜ ์šฐ์ˆ˜์ƒ(1๋“ฑ) 2ํ•™๊ธฐ ํŠนํ™” ํ”„๋กœ์ ํŠธ UCC ์šฐ์ˆ˜์ƒ(2๋“ฑ) ๊ทธ ์™ธ ์„ฑ๊ณผ ์˜คํ”ˆ์†Œ์Šค ๊ธฐ์—ฌ SSDC์— ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ ์ข‹์€ ์‚ฌ๋žŒ๋“ค์„ ๋„ˆ๋ฌด ๋งŽ์ด ์–ป์Œ๐Ÿ˜€ ์—ฌ๋Ÿฌ ๊ธฐ์ˆ  ์Šต๋“ ์ค‘๋„ ํ‡ด์†Œ ์ˆ˜๋ฃŒ๊นŒ์ง€ ๋‹จ 1๊ฐœ์›”์„ ์•ž๋‘” ์ƒํ™ฉ์—์„œ, ๋งŽ์€ ๊ณ ๋ฏผ ๋์— ์ค‘๋„ ํ‡ด์†Œ๋ฅผ ๊ฒฐ์‹ฌํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ‘์ž‘์Šค..

  • [Springboot] ๋ฏผ๊ฐ์ •๋ณด ์ˆจ๊ธฐ๊ธฐ - Argument ์ž…๋ ฅ

    ๊ฐœ์š” ์ง€๋‚œ๋ฒˆ ์ž‘์„ฑํ–ˆ๋˜ ๊ธ€์— ์ด์–ด ์–ด๋–ป๊ฒŒ ๋ฏผ๊ฐ์ •๋ณด๋ฅผ ์ˆจ๊ธฐ๋Š”์ง€์— ๋Œ€ํ•ด ์ž‘์„ฑํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. application.properties ๋˜๋Š” application.yml ํŒŒ์ผ์„ ์ž‘์„ฑํ•˜๋‹ค ๋ณด๋ฉด datasource.username, datasource.password์™€ ๊ฐ™์ด ํ˜•์ƒ๊ด€๋ฆฌ ํŽ˜์ด์ง€์—๋Š” ์ˆจ๊ธฐ๊ณ  ์‹ถ์€ ์ •๋ณด๋“ค์ด ์กด์žฌํ•ฉ๋‹ˆ๋‹ค. ์ด๋ฅผ ์ˆจ๊ธฐ๊ฑฐ๋‚˜ ์•”ํ˜ธํ™”ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ์—ฌ๋Ÿฌ ๊ฐœ ์กด์žฌํ•˜๋Š”๋ฐ, ์ด ์ค‘ ์‚ฌ์šฉ์ž ์ž…๋ ฅ์„ ํ†ตํ•ด application.yml์— Argument ์ „๋‹ฌํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ํฌ์ŠคํŒ…ํ•ฉ๋‹ˆ๋‹ค. ๊ฒฐ๊ณผ๋ฌผ..

  • Spring ํ™˜๊ฒฝ์—์„œ Docker run์œผ๋กœ jar์— argument ์ „๋‹ฌํ•˜๊ธฐ

    ์‚ฌ์ „ ์š”๊ตฌ ์ง€์‹ Docker์— ๋Œ€ํ•œ ์ดํ•ด ๋ฐ ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•๊ณผ Dockerfile ์‚ฌ์šฉ๋ฒ• Spring boot์—์„œ cmd๋กœ ๊ฐ’์„ ์ž…๋ ฅ ๋ฐ›์•„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ• cmd์—์„œ java jar๋กœ arguments๋ฅผ ์ „๋‹ฌํ•˜๋Š” ๋ฐฉ๋ฒ• ํ™˜๊ฒฝ Spring boot 2.5.7 ์‚ฌ์šฉ gitlab-ci๋กœ jar๋ฅผ docker image๋กœ ๋งŒ๋“ค์–ด ๋นŒ๋“œํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ, ๋ฏผ๊ฐ์ •๋ณด(datasource.password ๋“ฑ)๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์ง์ ‘ ์ž…๋ ฅํ•˜๋Š” ๋ฐฉ์‹์„ ์ฑ„ํƒํ–ˆ์œผ๋ฉฐ ์•„๋ž˜ ์‚ฌ์ง„์ฒ˜๋Ÿผ username๊ณผ password๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅํ•˜๋Š” ๊ฐ’์„ ๊ทธ๋Œ€๋กœ..

โœจ์ธ๊ธฐ๊ธ€