profile
ENFP๐Ÿค— ๋ฐฑ์—”๋“œ ๊ฐœ๋ฐœ์ž
post-thumbnail

[Spring boot] HTTP API ๋งŒ๋“ค๊ธฐ - ํด๋ผ์ด์–ธํŠธ Request ์ฒ˜๋ฆฌ @RequestParam ํŽธ

์Šคํ”„๋ง์—์„œ๋Š” @Responsebody ๋ฐ @RestController ์‚ฌ์šฉ ์‹œ, ๊ฐ์ฒด๋ฅผ ๋ฆฌํ„ดํ•˜๊ฒŒ๋˜๋ฉด MappingJackson2HttpMessageConverter์— ์˜ํ•ด ์ž๋™์œผ๋กœ ๋ฐ์ดํ„ฐ๊ฐ€ json์œผ๋กœ ๋ณ€ํ™˜๋˜๋ฉด์„œ Content-Type์ด application/json

2021๋…„ 10์›” 12์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring boot] HTTP API ๋งŒ๋“ค๊ธฐ - ํด๋ผ์ด์–ธํŠธ Request์˜ Content-Type์— ๋Œ€ํ•˜์—ฌ

์Šคํ”„๋ง์œผ๋กœ API๋ฅผ ๊ฐœ๋ฐœํ•  ๋•Œ Request ์ฒ˜๋ฆฌ์˜ ๊ฒฝ์šฐ @RequestParam, @RequestPart, @RequestBody๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ํ•ด๋‹น ์–ด๋…ธํ…Œ์ด์…˜๋“ค์€ ํด๋ผ์ด์–ธํŠธ์˜ Request๋ฅผ ์ž๋™์œผ๋กœ ์ฒ˜๋ฆฌ ํ•ด์ฃผ๊ธฐ ๋•Œ๋ฌธ์— ํ•ด๋‹น ์–ด๋…ธํ…Œ์ด์…˜๊ณผ Content-Type์— ๋Œ€

2021๋…„ 10์›” 7์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring boot] HTTP API ๋งŒ๋“ค๊ธฐ - ํ”„๋กœ์ ํŠธ ๋งŒ๋“ค๊ธฐ ๋ฐ Hello World!

์ด๋ฒˆ ๊ธ€์—์„œ๋Š” ๊ฐ„๋‹จํ•œ API 1๊ฐœ์™€ ์›นํŽ˜์ด์ง€ 1๊ฐœ๋ฅผ ๋งŒ๋“ค์–ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.์ธํ…”๋ฆฌ์ œ์ด๋ฅผ ๊ธฐ์ค€์œผ๋กœ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.ํ”„๋กœ์ ํŠธ ํ™˜๊ฒฝGradleJava 1.8Spring Boot 2.5.5DependenciesSpring Boot DevTools \- ์ž๋™ ์žฌ์‹œ์ž‘ ๊ธฐ๋Šฅ ์‚ฌ์šฉSpring

2021๋…„ 10์›” 6์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

REST, RESTful, REST API์— ๋Œ€ํ•œ ์˜คํ•ด์™€ ์ง„์‹ค

๋ฐฑ์—”๋“ค ๊ฐœ๋ฐœ์ž๋ผ๋ฉด ๋ˆ„๊ตฌ๋‚˜ ํ•œ ๋ฒˆ์ฏค์€ ๋ณธ ์œ ๋ช…ํ•œ ๋ฐœํ‘œ์ž๋ฃŒ์ž…๋‹ˆ๋‹ค.๊ทธ๋Ÿฐ REST API๋กœ ๊ดœ์ฐฎ์€๊ฐ€๋ฐœํ‘œ์—์„œ์˜ ํ•ต์‹ฌ๋‚ด์šฉ์€ ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.์˜ค๋Š˜๋‚  ๋Œ€๋ถ€๋ถ„์˜ "REST API"๋Š” ์‚ฌ์‹ค REST๋ฅผ ๋”ฐ๋ฅด์ง€ ์•Š๊ณ  ์žˆ๋‹ค.REST์˜ ์ œ์•ฝ์กฐ๊ฑด์„ ๋งŒ์กฑํ•˜์ง€ ์•Š๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.ํ•ด๋‹น ๋ฐœํ‘œ๋กœ, ์šฐ๋ฆฌ

2021๋…„ 9์›” 28์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

SpringBoot JPA Multiple Databases ์„ค์ •

๋‹ค์ค‘ DB๋Š” Spring boot ์ฒ˜๋Ÿผ Auto Configuration๋˜์ง€ ์•Š์Œ์„ค์ •ํŒŒ์ผ(application.yml ๋˜๋Š” application.properties) ๊ฐ’์„ ์ฝ์–ด์™€์„œ ์—ฐ๋™ ํ•  DB ์ˆ˜ ๋งŒํผ Datasource๋ฅผ ์ˆ˜๋™ ์„ค์ •ํ•ด์•ผํ•จ์„ค์ •ํŒŒ์ผ ๋Œ€์‹  ์ฝ”๋“œ๋กœ ์ง์ ‘ ์„ค

2021๋…„ 9์›” 17์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

GitLab CI/CD + SSH ๊ณต๊ฐœํ‚ค๋ฅผ ์ด์šฉํ•œ ์ž๋™๋ฐฐํฌ

Start Gitlab + AWS ์—ฐ๋™์— ๊ด€ํ•œ ๊ธ€์„ ์ฐธ ๋งŽ์ง€๋งŒ.. ์ €์ฒ˜๋Ÿผ IDC ์„œ๋ฒ„๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์—๊ฒ ํ•ด๋‹นํ•˜์ง€ ์•Š๋Š” ๋‚ด์šฉ์ด๋ผ.. ์ž๋ฃŒ๋„ ๋งŽ์ง€ ์•Š๊ณ , ์„ค๋ช…์ด ๋ถ€์‹คํ•œ ๊ธ€๋“ค์ด ๋งŽ์•„์„œ ์ง์ ‘ ์ •๋ฆฌํ•ด๋ด…๋‹ˆ๋‹ค. ๋ฌด์ž‘์ • ๋”ฐ๋ผํ•˜๋Š”๊ฒƒ ๋ณด๋‹ค, ๊ณต๊ฐœํ‚ค๋ฅผ ์ด์šฉํ•œ SSH ์ ‘์†์˜ ์ „์ฒด์ 

2021๋…„ 9์›” 14์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

MySQL/MariadB innodb_buffer_pool_instances ์„ฑ๋Šฅํ…Œ์ŠคํŠธ (1)

version: MySQL 8.0.26innodb_buffer_pool_size: 24GBinnodb_buffer_pool_instances๋Š” 1, 4, 8, 16, 24 ๊ฐ’์— ๋Œ€ํ•ด์„œ ํ…Œ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ•˜์˜€์Šต๋‹ˆ๋‹ค.์ตœ๋Œ€ 64๊นŒ์ง€ ์„ค์ • ๊ฐ€๋Šฅํ•˜์ง€๋งŒ, ์•„๋ž˜ ๊ณต์‹ํ™ˆํŽ˜์ด์ง€ ๋‚ด์šฉ์— ๋”ฐ๋ผ

2021๋…„ 9์›” 10์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

MariaDB์—๋Š” 'innodb buffer pool instances' ๋ณ€์ˆ˜ ์„ค์ •์ด ์—†๋‹ค...?

์ตœ๊ทผ innodb buffer pool ์„ค์ • ๊ด€๋ จํ•ด์„œ ์ฐพ์•„๋ณด๋‹ค๊ฐ€ ์•Œ๊ฒŒ๋œ ์‚ฌ์‹ค์ž…๋‹ˆ๋‹ค.MriaDB 10.5 ๋ณ€๊ฒฝ์‚ฌํ•ญ์— innoDB ์„ฑ๋Šฅ ํ•ญ์ƒน ๋‚ด์šฉ์ค‘์— Multiple buffer pool์ด ์ œ๊ฑฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.์ƒ์‹์ ์œผ๋กœ ์ƒ๊ฐํ•ด๋ดค์„๋•Œ ๋ฉ€ํ‹ฐ๋กœ ๋™์ž‘ํ•˜๋Š”๊ฒŒ ๋ฌด์กฐ๊ฑด ์„ฑ๋Šฅ์ด ์ข‹๋‹ค๊ณ  ์ƒ๊ฐ

2021๋…„ 8์›” 31์ผ
ยท
1๊ฐœ์˜ ๋Œ“๊ธ€

spring boot h2 memtestdb not found ๋ฌธ์ œ

1. h2 console ์ ‘๊ทผ ์—๋Ÿฌ gradle์ด๋‚˜ maven์œผ๋กœ h2 ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  ๋ณ„๋„์˜ ์„ค์ •์—†์ด Spring ํ”„๋กœ์ ํŠธ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ์ธ๋ฉ”๋ชจ๋ฆฌ ๊ธฐ๋ฐ˜์˜ h2 db๊ฐ€ ์ƒ์„ฑ๋˜์–ด ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ DB ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•ด ์ฝ˜์†”์„ ์ ‘์†ํ•˜์—ฌ ๋กœ๊ทธ์ธํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ

2021๋…„ 8์›” 23์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring boot] JPA Dialect(๋ฐฉ์–ธ) ์„ค์ •์— ๊ด€ํ•˜์—ฌ

๊ฒฐ๋ก ๋งŒ ๋ง์”€๋“œ๋ฆฌ๋ฉด "Dialect ์„ค์ •์€ ํ•˜์ง€ ์•Š๋Š”๊ฑธ ์ถ”์ฒœ๋“œ๋ฆฝ๋‹ˆ๋‹ค."ย ์ž…๋‹ˆ๋‹ค.ORM์˜ ํฐ ํŠน์ง•์ค‘ ํ•˜๋‚˜๋Š” ๊ฐ์ฒด ๋งตํ•‘์„ ํ†ตํ•ด ์ž๋™์œผ๋กœ ์ฟผ๋ฆฌ๋ฅผ ์ž‘์„ฑํ•ด์ฃผ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ˆ˜ ๋งŽ์€ DBMS ์ข…๋ฅ˜๊ฐ€ ์žˆ๊ณ  ๊ฐ ์ข…๋ฅ˜๋งˆ๋‹ค ์ฟผ๋ฆฌ๊ฐ€ ์กฐ๊ธˆ์”ฉ ๋‹ค๋ฅด๊ธฐ ๋•Œ๋ฌธ์—, ์ด๋ฅผ ์•Œ๋ฆด ์ˆ˜ ์žˆ๋„๋ก ๋ฐ์ดํ„ฐ๋ฒ 

2021๋…„ 8์›” 23์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Mysql/MariaDB] Spring/Springboot ์—์„œ ๋ฐ€๋ฆฌ์„ธ์ปจ๋“œ ์ €์žฅ์ด ์•ˆ๋˜๋Š” ๋ฌธ์ œ

๋ฐ€๋ฆฌ์„ธ์ปจ๋“œ ์ €์žฅ์ด ์•ˆ๋˜๋Š” ๊ทผ๋ณธ์ ์ธ ์ด์œ ๋Š” ํ•˜๋‚˜์ž…๋‹ˆ๋‹ค.ย  "๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฒ„์ „ ๋ฌธ์ œ"MySQL์€ 5.6.4๋ถ€ํ„ฐ,ย MariaDB๋Š” 5.3๋ถ€ํ„ฐ๋ฐ€๋ฆฌ์„ธ์ปจ๋“œ/๋งˆ์ดํฌ๋กœ์„ธ์ปจ๋“œ ๋‹จ์œ„๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.MariaDB์˜ ๊ฒฝ์šฐ, ํ˜ธํ™˜์„ฑ์„ ์œ„ํ•ด 10.1.2 ๋ฒ„์ „๋ถ€ํ„ฐ MySQL๊ณผ ๋™์ผํ•œ ํฌ๋งท ๋ฐ ๋ณ€

2021๋…„ 8์›” 23์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

SSH ๊ณต๊ฐœํ‚ค ์ธ์ฆ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ ‘์†ํ•˜๊ธฐ

๊ณต๊ฐœ ํ‚ค ์•”ํ˜ธ ๋ฐฉ์‹์€ ์•”ํ˜ธ ๋ฐฉ์‹์˜ ํ•œ ์ข…๋ฅ˜๋กœ ์‚ฌ์ „์— ๋น„๋ฐ€ ํ‚ค๋ฅผ ๋‚˜๋ˆ ๊ฐ€์ง€์ง€ ์•Š์€ ์‚ฌ์šฉ์ž๋“ค์ด ์•ˆ์ „ํ•˜๊ฒŒ ํ†ต์‹ ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค.๊ณต๊ฐœ ํ‚ค ์•”ํ˜ธ ๋ฐฉ์‹์—์„œ๋Š” ๊ณต๊ฐœ ํ‚ค์™€ ๋น„๋ฐ€ ํ‚ค๊ฐ€ ์กด์žฌํ•˜๋ฉฐ, ๊ณต๊ฐœ ํ‚ค๋Š” ๋ˆ„๊ตฌ๋‚˜ ์•Œ ์ˆ˜ ์žˆ์ง€๋งŒ ๊ทธ์— ๋Œ€์‘ํ•˜๋Š” ๋น„๋ฐ€ ํ‚ค๋Š” ํ‚ค์˜ ์†Œ์œ ์ž๋งŒ์ด ์•Œ ์ˆ˜ ์žˆ์–ด์•ผ ํ•œ

2021๋…„ 8์›” 3์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€