์ „์ฒด ๊ธ€

git remote branch ์ฝ”๋“œ๋ฆฌ๋ทฐ๋‚˜ ์งˆ๋ฌธ(?)์— ๋Œ€๋‹ตํ•˜๊ธฐ ์œ„ํ•ด, ๋‚ด ๋ธŒ๋žœ์น˜๊ฐ€ ์•„๋‹Œ ๋‹ค๋ฅธ ํŒ€์›์˜ branch๋ฅผ ๊ฐ€์ ธ์™€์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. ์›๊ฒฉ ์ €์žฅ์†Œ์˜ branch๋„ ๊ทธ๋ƒฅ checkout ํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋ฉด ๋˜๋Š” ์ค„ ์•Œ์•˜๋Š”๋ฐ ๊ทธ๋ ‡์ง€ ์•Š์•˜๋‹ค. 1. git remote update ์›๊ฒฉ ์ €์žฅ์†Œ์˜ ์˜ฌ๋ผ์™€ ์žˆ๋Š” branch ๋ชฉ๋ก์„ ๋กœ์ปฌ์— ์—…๋ฐ์ดํŠธ ํ•œ๋‹ค. 2. git branch -r ์›๊ฒฉ ์ €์žฅ์†Œ ๋ชฉ๋ก์„ ์กฐํšŒํ•œ๋‹ค 3. git checkout -t origin/๋ธŒ๋žœ์น˜๋ช… -t ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜๋ฉด, remote์™€ ๋™์ผํ•œ ์ด๋ฆ„์˜ ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•˜๋ฉด์„œ checkout ํ•œ๋‹ค -b ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜๋ฉด, ๋ธŒ๋žœ์น˜ ์ด๋ฆ„์„ ๋ณ€๊ฒฝํ•ด์„œ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ๋‹ค git checkout -b [์ƒ์„ฑํ•  ์ด๋ฆ„] [๊ฐ€์ ธ์˜ฌ ๋ธŒ๋žœ์น˜ ๋ช…] ๐Ÿ‘ Reference ๋”๋ณด..
CLOB ๋ฌธ์ž ๋Œ€ํ˜• ๋ฐ์ดํ„ฐ ๋ณด๊ด€์šฉ ์˜ค๋ผํด์€ CLOB VARCHAR2 ์‚ฌ์ด์— ์•”์‹œ์  ๋ณ€ํ™˜์„ ์ˆ˜ํ–‰ํ•ด์ค€๋‹ค. ์ตœ๋Œ€ 4GB๊นŒ์ง€ ์ €์žฅ ๊ฐ€๋Šฅ ๋”ฐ๋กœ SIZE ์ง€์ • ์•ˆํ•˜๊ณ  ์‚ฌ์šฉ CLOB ์ปฌ๋Ÿผ Select ์‹œ ์ฃผ์˜ ์‚ฌํ•ญ CLOB ์ปฌ๋Ÿผ์€ ์ตœ๋Œ€ 4GB์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, row ์ˆ˜๊ฐ€ ๋งŽ์•„์ง„๋‹ค๋ฉด ์„ฑ๋Šฅ๋ฉด์—์„œ ํฐ ๋ถ€๋‹ด์ด ๋  ์ˆ˜ ์žˆ๋‹ค. ๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— CLOB ์ปฌ๋Ÿผ ์กฐํšŒ ์‹œ ์ „์ฒด ๋ฐ์ดํ„ฐ๊ฐ€ ์•„๋‹Œ ์ผ๋ถ€ ๋ฐ์ดํ„ฐ๋งŒ ๋ณด์—ฌ์ง€๊ฒŒ ๋œ๋‹ค. (๋ฐ์ดํ„ฐ๊ฐ€ ์ž˜๋ชป ๋“ค์–ด ๊ฐ„๊ฒŒ ์•„๋‹˜..!) ์ „์ฒด ๊ฐ’์„ ์กฐํšŒํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด dbms_lob.substr(์ปฌ๋Ÿผ๋ช…, dbms_lob.getlength(์ปฌ๋Ÿผ๋ช…)) ์„ ์ด์šฉํ•ด์„œ ์กฐํšŒํ•œ๋‹ค. ๋‹จ, Orange ํˆด์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค๋ฉด ์ „์ฒด ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด์—ฌ์ค€๋‹ค๊ณ  ํ•˜๋‹ˆ ์ฐธ๊ณ ! [Tools] - [Orange Options…] ..
Spring @RestController ์‘๋‹ต ์‹œ, ์ •์˜ ๋˜์ง€ ์•Š์€ ๊ฐ’๋„ ๊ฐ™์ด ์‘๋‹ต๋˜๋Š” ์ด์œ  @Getter @Setter public class UserDomain { private String name; private int age; public boolean isTwenties() { if (this.age >= 20 && this.age < 30){ return true; } return false; } } ์œ„์™€ ๊ฐ™์ด, ๋„๋ฉ”์ธ ๊ฐ์ฒด ์•ˆ์— ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์ด ํฌํ•จ๋œ ๋ฉ”์„œ๋“œ๊ฐ€ ์กด์žฌํ•œ๋‹ค๊ณ  ์ƒ์ƒํ•ด๋ณด์ž. isTwenties() ๋Š” ํ˜„์žฌ User์˜ ๋‚˜์ด๋ฅผ ํŒ๋‹จํ•˜์—ฌ 20๋Œ€์ธ์ง€ ์•„๋‹Œ์ง€๋ฅผ ์•Œ๋ ค์ฃผ๋Š” ๋ฉ”์„œ๋“œ์ด๋‹ค. @RestController public class UserController { @GetMapping("/u..
1. Maven Java ํ”„๋กœ์ ํŠธ ๋นŒ๋“œ ํˆด ๋นŒ๋“œ ํ”„๋กœ์„ธ์Šค๋ฅผ ๋‹จ์ˆœํ™”ํ•˜๋ ค๋Š” ์‹œ๋„๋กœ ์‹œ์ž‘๋˜์—ˆ๋‹ค. ๋ณดํ†ต Java ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉํ•˜์ง€๋งŒ Java ํ”„๋กœ์ ํŠธ ๋ฟ ์•„๋‹ˆ๋ผ JVM์—์„œ ๋™์ž‘ํ•˜๋Š” Kotlin or Scale์—์„œ๋„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ณ  ์‹ฌ์ง€์–ด C#, Ruby์—์„œ๋„ ์‚ฌ์šฉ ํ•  ์ˆ˜ ์žˆ๋‹ค. You can not only build Java projects with it, but pretty much every project written in a JVM language like Kotlin or Scala, as well as other languages like C# and Ruby. 2. ํŠน์ง• ์ข…์†์„ฑ ๊ด€๋ฆฌ: ์™ธ๋ถ€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ(3th-party dependency)๋ฅผ ํ˜„์žฌ ํ”„๋กœ์ ํŠธ์— ์‰ฝ๊ฒŒ ํฌํ•จ ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค. ์ฐธ๊ณ  : ..
@UtilityClass UtilityClass๋ฅผ ์ƒ์„ฑํ•  ๋•Œ, ์ดํŽ™ํ‹ฐ๋ธŒ ์ž๋ฐ”์—์„œ ์œ ํ‹ธ ํด๋ž˜์Šค์— ๋Œ€ํ•œ ์–ธ๊ธ‰์ด ์žˆ์—ˆ๋˜ ๊ธฐ์–ต์ด ๋‚˜์„œ ๊ตฌ๊ธ€๋ง ํ•˜๋‹ค๊ฐ€ ์ฐพ์€ ์–ด๋…ธํ…Œ์ด์…˜ boilerplate๋กœ ๊ฐ„์ฃผํ•  ๋งŒํผ ์ผ๋ฐ˜์ ์ธ์ง€์— ๋Œ€ํ•œ ๋…ผ์Ÿ์ด ์žˆ๋Š” ํ˜•์‹์ด๋ผ ์‹คํ—˜ ๊ธฐ๋Šฅ์œผ๋กœ ๋„์ž…๋˜์—ˆ๋‹ค๊ณ  ํ•จ (lombok v1.16.2) boilerplate : ์ตœ์†Œํ•œ์˜ ๋ณ€๊ฒฝ์œผ๋กœ ์—ฌ๋Ÿฌ๊ณณ์—์„œ ์žฌ์‚ฌ์šฉ๋˜๋ฉฐ, ๋ฐ˜๋ณต์ ์œผ๋กœ ๋น„์Šทํ•œ ํ˜•ํƒœ๋ฅผ ๋„๋Š” ์ฝ”๋“œ๋ฅผ ๋งํ•œ๋‹ค. ๊ธฐ๋Šฅ private ์ƒ์„ฑ์ž๊ฐ€ ์ž๋™์œผ๋กœ ์ƒ์„ฑ๋˜์–ด ์ธ์Šคํ„ด์Šคํ™” ํ•  ์ˆ˜ ์—†๊ฒŒ ๋ง‰์Œ final class ์œผ๋กœ ์ง€์ •๋˜์–ด ์ƒ์† ๋ฐ›์„ ์ˆ˜ ์—†๊ฒŒ ๋จ ๋‚ด๋ถ€์˜ ๋ชจ๋“  ๋ฉค๋ฒ„์™€ ๋ฉ”์„œ๋“œ๋Š” static ์ฒ˜๋ฆฌ ๋จ. (inner class static ์ฒ˜๋ฆฌ ๋จ) // With Lombok import lombok.experimental..
YURI๐Ÿ•๐Ÿ“๐Ÿถ
๐Ÿ•