๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๊ฐœ๋ฐœ์ƒํ™œ42

[JAVA] ๋Œ€๋ฌธ์ž ์•ž์— ๊ณต๋ฐฑ ์ถ”๊ฐ€ String originText = "CocoHiByeHaha331"; String CapitalSpaceText = text.replaceAll("\\d+", "").replaceAll("(.)([A-Z])", "$1 $2"); -> Coco Hi Bye Haha ์ˆซ์ž ์ œ๊ฑฐ ํ›„ ๋Œ€๋ฌธ์ž ์•ž์— ๋„์–ด์“ฐ๊ธฐ ์ถ”๊ฐ€ 2022. 3. 22.
[GIT] Clone์œผ๋กœ ์‹ ๊ทœ ์ƒ์„ฑ ํ”„๋กœ์ ํŠธ ์ดˆ๊ธฐํ™” 1. Clone ๋œฌ ํ”Œ์  ์›๊ฒฉ ๋Š๊ธฐ git remote -v git remote remove origin 2. ์›๊ฒฉ ๋Š์–ด์ฃผ๊ณ  ๋‚œ ๋’ค rm -rf .git git init git add . git commit -m "initial commit" 3. BitBucket๊ฐ€์„œ ์ƒˆ๋กœ์šด Repository ์ƒ์„ฑ 4. Git ์ €์žฅ์†Œ ์—ฐ๊ฒฐ ํ›„ ๊ฐ•์ œ push git remote add origin {git remote url} git push -u --force origin master 2022. 3. 20.
[AWS] Aurora RDS MySQL 5.7 to 8.0 - RDS ์Šค๋ƒ…์ƒท ์ƒ์„ฑ ๋ฐ ๋ณต์› ๋ฐฉ๋ฒ•์œผ๋กœ ์ง„ํ–‰ - ์‚ฌ์ „ ์ค€๋น„ MySQL Connector Version Up 8.0.x ์ดํ›„๋กœ ์˜ฌ๋ ค์ค˜๋„ ๋˜๋‚˜, ์•„์ง ์‚ฌ์ด๋“œ ์ดํŽ™์„ ํ™•์ธ ๋ชปํ•ด ์šฐ์„ ์€ 5.1.49๊นŒ์ง€๋งŒ ์˜ฌ๋ ค ๋†“์•˜๋‹ค. dependency mysql mysql-connector-java 5.1.49 useSSL=false ์˜ต์…˜ ์ถ”๊ฐ€ 31์—๋Š” ์ด์Šˆ๊ฐ€ ์—†์—ˆ์œผ๋‚˜, 5.1.49๋กœ ์ปค๋„ฅํ„ฐ ๋ฒ„์ „์„ ์˜ฌ๋ฆฌ๊ณ ๋Š” ์ฝ”๋“œ ๋‚ด DB Property ์„ค์ • ์‹œ useSSL=false ์˜ต์…˜์„ ์•ˆ์ฃผ๋ฉด ์„œ๋น„์Šค๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ๋™์ž‘ํ•˜์ง€ ์•Š์•„ ํ•„์ˆ˜์ ์œผ๋กœ ํ•ด๋‹น ์˜ต์…˜์„ ์ถ”๊ฐ€ ํ–ˆ๋‹ค. ํ˜น์‹œ mariadb connector๊ฐ€ ํ•จ๊ป˜ ์‚ฌ์šฉ๋œ๋‹ค๋ฉด mysql connector๋กœ ๋ณ€๊ฒฝ ํ›„ ์ œ๊ฑฐ pom ๋“ฑ ์„ค์ • ํŒŒ์ผ์— database connector๊ฐ€ ์—ฌ๋Ÿฌ๊ฐœ ์žˆ์„ ๊ฒฝ.. 2022. 3. 15.
ํ•œ ํ”„๋กœ์ ํŠธ์—์„œ ๋‘ ๊ฐœ์˜ MQ Connection ์ •๋ณด ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์„ ๋•Œ MQ Broker๋Š” ๊ฐ™์ด ์‚ฌ์šฉ์ค‘์ธ๋ฐ, vHost๋ฅผ ๋ถ„๋ฆฌํ•˜๊ณ  ์‹ถ์—ˆ๋‹ค. ๊ฒ€์ƒ‰์„ ํ•ด๋ดค๋Š”๋ฐ amqp์—์„œ ์ผ๋‹จ ์ด๋Ÿฐ ์ผ€์ด์Šค ์ง€์›์„ ์•ˆํ•˜๋Š” ๊ฒƒ ๊ฐ™์•˜๊ณ , ์–ด์ผ€ ํ• ์ง€ ๊ณ ๋ฏผํ•˜๊ณ  ์ฐพ์•„๋ณด๋‹ค๊ฐ€ RabbitConfig ์„ค์ • ํŒŒ์ผ ๋งŒ๋“ค์–ด ๋†“์€ ๊ณณ์— ๊ธฐ์กด์—” ๊ตฌ๋ƒฅ rabbitTemplate Autowired ํ•œ๊ฑธ ์‚ฌ์šฉํ–ˆ์œผ๋‚˜, ์›ํ•˜๋Š” ๋‘ connectionFactory์™€ rabbitTemplate๋ฅผ ์ƒˆ๋กœ bean์„ ๊ฐ๊ฐ ๋งŒ๋“ค์–ด์„œ ๊ตฌํ˜„ํ•ด์คฌ๋‹ค. ์•ฝ๊ฐ„ ๋˜‘๋˜‘ํ•˜๊ฒŒ ํ•ด์ฃผ๋Š”๊ฑธ ๋ฉ์ฒญํ•˜๊ฒŒ ๋‹ค์‹œ ๋ฐ”๊ฟ”๋ฒ„๋ฆฐ ๋Š๋‚Œ์ด์ž๋งŒ ์ผ๋‹จ์€ ๊ตฌ๋ถ„์„ ํ•˜๋Š”๊ฒŒ ๋ชฉ์ ์ด์—ˆ์œผ๋‹ˆ.. ์„ค์ • ๋ถ€๋ถ„ @Configuration public class RabbitMqConfig { @Resource private Environment environment; public final static.. 2022. 3. 5.
๋กœ์ปฌ ํ”„๋กœ์ ํŠธ๋ฅผ GitHub Repository๋กœ ์ƒ์„ฑ & ์—ฐ๊ฒฐ ๋กœ์ปฌ์— ์ธํ…”๋ฆฌ์ œ์ด์—์„œ ์ƒˆ๋กœ ์ƒ์„ฑํ•œ ํ”„๋กœ์ ํŠธ๋ฅผ ๊นƒํ—ˆ๋ธŒ์— ์˜ฌ๋ฆฐ๋‹ค. ํ„ฐ๋ฏธ๋„๊ณผ ํˆด ํ™œ์šฉํ•ด์„œ ์—…๋กœ๋“œ ์„ฑ๊ณตํ•œ ์ผ€์ด์Šค.. ์‚ฌ์ „ ์ž‘์—… ์ธํ…”๋ฆฌ์ œ์ด์™€ ๊นƒ ํ—™์ด ์—ฐ๊ฒฐ์ด ๋˜์–ด ์žˆ์–ด์•ผํ•จ (ํ•„์ˆ˜๋Š” ์•„๋‹ˆ๋‚˜ ํŽธํ•จ) ์ปค๋งจ๋“œ+, (setting) : github -> + -> ๋‚˜์˜ ๊นƒํ—™ ๊ณ„์ • ๋“ฑ๋ก (๋“ฑ๋ก ์‹œ ํ† ํฐ ์‚ฌ์šฉ ๊ถŒ์žฅ. ์—ฌ๊ธฐ์„œ ์„ค๋ช…ํ•˜๋Š” ๊ถŒํ•œ์ด ๋ชจ๋‘ ์žˆ๋Š” ํ† ํฐ์ด์–ด์•ผ๋งŒ ๋กœ๊ทธ์ธ ๊ฐ€๋Šฅ) ์ธํ…”๋ฆฌ์ œ์ด ๋กœ์ปฌ ํ”Œ์  ์ƒ์„ฑ ๋ฐ ๊ฐœ๋ฐœ ์ž‘์—… VCS -> Enable Version Control Integration Git ์„ ํƒ ์™„๋ฃŒ ์‹œ -> Created Git repository in /๊ฒฝ๋กœ/๊ฒฝ๋กœ/๊ฒฝ๋กœ/projectnm ๋ฉ”์„ธ์ง€ ํ•˜๋‹จ์— ํŒ์—… ๋œธ Git -> Github -> Share Project on Github ์ผ๋‹จ ์ด๋ ‡๊ฒŒ ํ–ˆ๋”๋‹ˆ ๊นƒํ—™์— ๋ฆฌํฌ ์ƒ.. 2022. 3. 2.
[JAVA] char ์ •๋ฆฌ ํ•˜๋‚˜์”ฉ ์ถ”๊ฐ€ ์ •๋ฆฌํ•ด๋‚˜๊ฐˆ ์˜ˆ์ • 1. charAt(idx) ๋ฌธ์ž์—ด์˜ index๋ฒˆ์งธ ์œ„์น˜์— ์žˆ๋Š” character์„ return String str = "Hello World"; char c = str.charAt(0); System.out.println("c==?"+c); //H //์‹ค์ œ ๊ตฌํ˜„๋ถ€ // public char charAt(int index) { // if ((index = value.length)) { // throw new StringIndexOutOfBoundsException(index); // } // return value[index]; // } 2. String.toCharArray() ๋ฌธ์ž์—ด์„ charArray๋กœ ๋ณ€ํ™˜ String str1 = "Hello.. 2022. 3. 1.