profile
Alex's Develog ๐Ÿค”
ํƒœ๊ทธ ๋ชฉ๋ก
์ „์ฒด๋ณด๊ธฐ (72)Spring boot(20)Database(14)mysql(11)msa(10)JPA(8)์•Œ๊ณ ๋ฆฌ์ฆ˜(8)Java(7)baekjoon(7)spring-data-jpa(7)algorithm(7)python(7)boj(7)coding test(7)spring cloud(6)BFS(6)Hibernate(5)Graph(5)Spring(5)DFS(5)eureka(4)Microservices(3)REST(3)like(2)microservice(2)ํƒ์š•์•Œ๊ณ ๋ฆฌ์ฆ˜(2)OOP(2)git(2)entity manager(2)docker(2)String(2)JWT(2)lazy fetch(1)security(1)ifnull(1)datatype(1)feign(1)many to many(1)sleuth(1)service discovery(1)dijkstra(1)๋‹ค์ต์ŠคํŠธ๋ผ(1)MVC(1)rebase merge(1)many to one(1)csrf(1)StringBuilder(1)one to many(1)H2(1)annotation(1)network(1)linkedlist(1)&&(1)๋ถ„ํ• ์ •๋ณต(1)์ตœ์†Œ์‹ ์žฅํŠธ๋ฆฌ(1)transaction(1)ALTER(1)DROP(1)CREATE(1)config server(1)ec2(1)DBMS(1)https(1)REST API(1)json(1)ํฌ๋ฃจ์Šค์นผ(1)์žฌ๊ท€์šฉ๋ฒ•(1)decrypt(1)ํ•™์—…๊ณ„ํš(1)one to one(1)hystrix(1)aop(1)์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ณต์žก๋„(1)delete(1)data type(1)Load balancing(1)tree(1)select(1)squash merge(1)2020(1)HashTable(1)RestTemplate(1)rdb(1)StringBuffer(1)nullif(1)synchronous(1)eager fetch(1)persistence(1)LIS(1)update(1)cloud config server(1)ํ€ต์ •๋ ฌ(1)JVM(1)persistence context(1)API Gateway(1)zipkin(1)๋ฐ์ดํ„ฐ ํƒ€์ž…(1)annotations(1)encrypt(1)๋ฐฑํŠธ๋ž˜ํ‚น(1)์‚ฝ์ž…์ •๋ ฌ(1)array(1)messaging(1)aws(1)์ด์ง„ํƒ์ƒ‰(1)spring security(1)ํ”„๋ฆผ(1)spring cloud bus(1)๋ณ€์ˆ˜(1)๊ทธ๋ž˜ํ”„(1)Token(1)regexp(1)zuul(1)JPQL(1)if(1)๋™์ ๊ณ„ํš๋ฒ•(1)equals(1)rabbitmq(1)data structure(1)case(1)native query(1)routing(1)Relational Database(1)fp(1)asynchronous(1)์ˆœ์ฐจํƒ์ƒ‰(1)variable(1)์„ ํƒ์ •๋ ฌ(1)sql(1)๋ฒ„๋ธ”์ •๋ ฌ(1)ORM(1)INSERT(1)Restful(1)merge(1)http(1)Thread(1)stack(1)queue(1)heap(1)ํ•ฉ๋ณ‘์ •๋ ฌ(1)nqueen(1)
post-thumbnail

[Spring Data JPA] Entity Relationships

๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋‚ด์˜ ๋ฐ์ดํ„ฐ ์ค‘๋ณต์„ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ํ•œ์ชฝ ์—”ํ‹ฐํ‹ฐ๋งŒ์„ ์—ฐ๊ด€๊ด€๊ณ„์˜ ์ฃผ์ธ์œผ๋กœ ์„ค์ •๊ธฐ๋ณธ์ ์œผ๋กœ FetchType ์€ Eager๋กœ ์„ค์ •๋˜์–ด ์žˆ์Œ์—ฐ๊ด€๊ด€๊ณ„์˜ ์ฃผ์ธ์„ ์„ค์ •ํ•  ๋•Œ, ์ฃผ์ธ์ด ์•„๋‹Œ ์ชฝ์— mappedBy = {๋ณ€์ˆ˜๋ช…}์„ ์„ค์ •ํ•ด์ฃผ๋ฉด ๋จStudent ํด๋ž˜์ŠคPasspor

์–ด์ œ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Boot & MSA] Thread Context & Hystrix

๐ŸŒŸ Thread Context & Hystrix @HystrixCommand ๊ฐ€ ์‹คํ–‰๋  ๋•Œ THREAD ์™€ SEMAPHORE ๋ผ๋Š” ๋‘ ๊ฐ€์ง€ ๋‹ค๋ฅธ ๊ฒฉ๋ฆฌ ์ „๋žต์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ ํžˆ์ŠคํŠธ๋ฆญ์Šค๋Š” THREAD ๊ฒฉ๋ฆฌ ์ „๋žต์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ํ˜ธ์ถœ์„ ๋ณดํ˜ธํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋œ

3์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Boot & MSA] Zuul API Gateway

๐Ÿš€ API Gateway๋ž€? ์ฃผ์šธ์€ ๋„ทํ”Œ๋ฆญ์Šค์˜ ํžˆ์ŠคํŠธ๋ฆญ์Šค์™€ ๋ฆฌ๋ณธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•ด ์˜ค๋ž˜ ์ˆ˜ํ–‰๋˜๋Š” ์„œ๋น„์Šค ํ˜ธ์ถœ์ด ์„œ๋น„์Šค ๊ฒŒ์ดํŠธ์›จ์ด์˜ ์„ฑ๋Šฅ์— ์˜ํ–ฅ์„ ๋ฏธ์น˜์ง€ ์•Š๋„๋ก ํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์„ ์ฃผ์šธ์€ ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฐ 1์ดˆ ์ด์ƒ ๊ฑธ๋ฆฌ๋Š” ๋ชจ๋“  ํ˜ธ์ถœ์„ ์ข…๋ฃŒํ•˜๊ณ  HTTP 500 ์—๋Ÿฌ๋ฅผ

3์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Data JPA] Transaction, Entity Manager, Persistence Context

ํ˜„์žฌ ํŠธ๋žœ์žญ์…˜์ด ๊ด€๋ฆฌ ์ค‘์ธ ๋ชจ๋“  ์—”ํ‹ฐํ‹ฐ๋ฅผ ์ €์žฅํ•˜๋Š” ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค. ํŠธ๋žœ์žญ์…˜์ด ์‹œ์ž‘ํ•  ๋•Œ ์ƒ์„ฑ๋˜๊ณ  ํŠธ๋žœ์žญ์…˜์ด ๋๋‚  ๋•Œ ์ œ๊ฑฐ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.๋งŒ์•ฝ์— @Transactional ์–ด๋…ธํ…Œ์ด์…˜์ด ์—†์„ ๊ฒฝ์šฐ, Entity Manager์˜ ์—ฐ์‚ฐ(Database Operation 1)์ด ๋๋‚  ๊ฒฝ

4์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Data JPA] Eager Fetch vs Lazy Fetch

ย ย ย ย  Fetch Type์€ JPA๊ฐ€ ํ•˜๋‚˜์˜ ์—”ํ‹ฐํ‹ฐ๋ฅผ ์กฐํšŒํ•  ๋•Œ, ์—ฐ๊ด€ ๊ด€๊ณ„์— ์žˆ๋Š” ๊ฐ์ฒด๋“ค์„ ์–ด๋–ป๊ฒŒ ๊ฐ€์ ธ์˜ฌ ๊ฒƒ์ด๋ƒ๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ์„ค์ •๊ฐ’์ž…๋‹ˆ๋‹ค.Fetch Type์€ ํฌ๊ฒŒ Eager์™€ Lazy ๋‘ ๊ฐ€์ง€์˜ ์ „๋žต์ด ์žˆ์Šต๋‹ˆ๋‹ค. Eager ์ „๋žต์€ ์—”ํ‹ฐํ‹ฐ๋ฅผ ์กฐํšŒํ•  ๋•Œ, ์—ฐ๊ด€ ๊ด€๊ณ„์—

4์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Boot & MSA] Eureka Service Discovery(2)

1) ์˜์กด์„ฑ ์„ค์ •2) @EnableEurekaServer ์–ด๋…ธํ…Œ์ด์…˜ ์ถ”๊ฐ€3) ํ”„๋กœํผํ‹ฐ ์„ค์ •(Config Server ๋‚ด์˜ eureka-server.yml)registerWithEureka: false -> Eureka Service์— ์ž์‹ ์„ ๋“ฑ๋กํ•˜์ง€ ์•Š๋Š”๋‹คfetchRe

4์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Data JPA] Native Queries

5์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Data JPA] JPA & Hibernate Annotations

@NameQueries

5์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Data JPA] Entity Manager

org.springframework.transaction.annotation.Transactionalํ•ด๋‹น ๋ฉ”์†Œ๋“œ๋ฅผ ํŠธ๋žœ์žญ์…˜ ๋‚ด์— ์‹คํ–‰์˜ค๋ฅ˜ ๋ฐœ์ƒ์‹œ ๋กค๋ฐฑํ…Œ์ŠคํŠธ ์‹คํ–‰์‹œ ์ˆ˜์ • ๋œ ๋ฐ์ดํ„ฐ๋ฅผ ์›์ƒ ๋ณต๊ท€ ์‹œํ‚ดํ˜„์žฌ ์‹คํ–‰ ์ค‘์ธ ํŠธ๋žœ์žญ์…˜ ๋‚ด์˜ ๋ชจ๋“  ์—”ํ‹ฐํ‹ฐ๋ฅผ ํŠธ๋ž˜ํ‚น์ด๋กœ ์ธํ•ด ์—”ํ‹ฐํ‹ฐ ์ˆ˜์ •

5์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Data JPA] H2 Console ๋ฐ ๋กœ๊น… ์„ค์ •

H2-Console ํ™œ์„ฑํ™” Hibernate Statistics ํ™œ์„ฑํ™” Statistics ๋กœ๊น… ํ™œ์„ฑํ™” SQL Query ์ถœ๋ ฅ ํ™œ์„ฑํ™” SQL Query Format ํ™œ์„ฑํ™”(์šด์˜ ํ™˜๊ฒฝ์—์„œ๋Š” ๋น„ํ™œ์„ฑํ™”ํ•˜๊ธฐ) Parameter Trace ๋กœ๊น… ํ™œ์„ฑํ™”

5์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Docker] Docker ์ฃผ์š” ๋ช…๋ น์–ด

Note๋„์ปค ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์‚ญ์ œํ•˜๋ ค๋ฉด ๋จผ์ € ํ•ด๋‹น ๋„์ปค ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ค‘์ง€ ์‹œ์ผœ์•ผํ•ฉ๋‹ˆ๋‹ค.

5์ผ ์ „
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Spring Boot & MSA] Eureka Service Discovery(1)

์ •์˜Client-side Service DiscoveryEureka๋Š” ์ฃผ์†Œ๊ฐ€ ๋™์ ์œผ๋กœ ๋ณ€ํ•˜๋Š” AWS์™€ ๊ฐ™์€ Cloud ์‹œ์Šคํ…œ ํ™˜๊ฒฝ์—์„œ ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์„œ๋น„์Šค ์ธ์Šคํ„ด์Šค๋ฅผ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ฐ ์„œ๋น„์Šค๋“ค์˜ IP / Port / Instance ID ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” REST ๊ธฐ๋ฐ˜

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

[BOJ] ํ•ดํ‚น #10282

๋‚œ์ด๋„: ์ค‘๋ฌธ์ œ ์œ ํ˜•: ๋‹ค์ต์ŠคํŠธ๋ผ ์ตœ๋‹จ ๊ฒฝ๋กœ๊ทธ๋ž˜ํ”„ ๊ณ ๊ธ‰ ํƒ์ƒ‰: ํ•ต์‹ฌ ์œ ํ˜• ๋ฌธ์ œํ’€์ด์ตœํ‰์ตœ์•…์˜ ํ•ด์ปค yum3์ด ๋„คํŠธ์›Œํฌ ์‹œ์„ค์˜ ํ•œ ์ปดํ“จํ„ฐ๋ฅผ ํ•ดํ‚นํ–ˆ๋‹ค! ์ด์ œ ์„œ๋กœ์— ์˜์กดํ•˜๋Š” ์ปดํ“จํ„ฐ๋“ค์€ ์ ์ฐจ ํ•˜๋‚˜๋‘˜ ์ „์—ผ๋˜๊ธฐ ์‹œ์ž‘ํ•œ๋‹ค. ์–ด๋–ค ์ปดํ“จํ„ฐ a๊ฐ€ ๋‹ค๋ฅธ ์ปดํ“จํ„ฐ b์— ์˜์กดํ•œ๋‹ค๋ฉด, b๊ฐ€ ๊ฐ์—ผ

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

[BOJ] ํšจ์œจ์ ์ธ ํ•ดํ‚น #1325

https://www.acmicpc.net/problem/1325๋‚œ์ด๋„: ํ•˜๋ฌธ์ œ ์œ ํ˜•: DFS, BFS๊ทธ๋ž˜ํ”„ ๊ธฐ๋ณธ ํƒ์ƒ‰: ํ•ต์‹ฌ ์œ ํ˜• ๋ฌธ์ œํ’€์ดํ•ด์ปค ๊น€์ง€๋ฏผ์€ ์ž˜ ์•Œ๋ ค์ง„ ์–ด๋Š ํšŒ์‚ฌ๋ฅผ ํ•ดํ‚นํ•˜๋ ค๊ณ  ํ•œ๋‹ค. ์ด ํšŒ์‚ฌ๋Š” N๊ฐœ์˜ ์ปดํ“จํ„ฐ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค. ๊น€์ง€๋ฏผ์€ ๊ท€์ฐฎ๊ธฐ ๋•Œ๋ฌธ์—

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

[Spring Boot & MSA] Running Microservices in Docker Containers

1) AWS EC2 ์ธ์Šคํ„ด์Šค์— ์—ฐ๊ฒฐ ํ‚คํŽ˜์–ด ์†Œ์œ ์ž๋งŒ์ด ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ถŒํ•œ ์„ค์ • EC2 ์—ฐ๊ฒฐ 2) EC2 ์ธ์Šคํ„ด์Šค์— Docker ์„ค์น˜ Note ์‚ฌ์šฉ ํ›„์— ์„ ์น˜๊ณ  ๋‹ค์‹œ ์ ‘์†ํ•˜๋ฉด ๋ฅผ ์น˜๋ฉด์„œ Docker๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•„๋„ ๋ฉ๋‹ˆ๋‹ค. 3) Run RabbitMQ Do

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

[BOJ] ์œ ๊ธฐ๋† ๋ฐฐ์ถ” #1012

https://www.acmicpc.net/problem/1012๋‚œ์ด๋„: ํ•˜๋ฌธ์ œ ์œ ํ˜•: DFS, BFS์ถœ์ œ ๋นˆ๋„: ๋งค์šฐ ๋†’์Œ๊ทธ๋ž˜ํ”„ ๊ธฐ๋ณธ ํƒ์ƒ‰์ฐจ์„ธ๋Œ€ ์˜๋†์ธ ํ•œ๋‚˜๋Š” ๊ฐ•์›๋„ ๊ณ ๋žญ์ง€์—์„œ ์œ ๊ธฐ๋† ๋ฐฐ์ถ”๋ฅผ ์žฌ๋ฐฐํ•˜๊ธฐ๋กœ ํ•˜์˜€๋‹ค. ๋†์•ฝ์„ ์“ฐ์ง€ ์•Š๊ณ  ๋ฐฐ์ถ”๋ฅผ ์žฌ๋ฐฐํ•˜๋ ค๋ฉด ๋ฐฐ์ถ”๋ฅผ ํ•ด์ถฉ

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

[Spring Boot & MSA] Secure Eureka Discovery Service

Eureka Server ํ”„๋กœ์ ํŠธ ๊ตฌ์„ฑ ์˜์กด์„ฑ ์„ค์ • ํ”„๋กœํผํ‹ฐ ์„ค์ • ApplicationSecurityConfig ์„ค์ • Eureka Client ํ”„๋กœ์ ํŠธ ๊ตฌ์„ฑ ํ”„๋กœํผํ‹ฐ Eureak URL ์ˆ˜์ •

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

[BOJ] ๋ฐ”์ด๋Ÿฌ์Šค #2606

https://www.acmicpc.net/problem/2606๋‚œ์ด๋„: ํ•˜๋ฌธ์ œ ์œ ํ˜•: DFS, BFS๊ทธ๋ž˜ํ”„ ๊ธฐ๋ณธ ํƒ์ƒ‰์‹ ์ข… ๋ฐ”์ด๋Ÿฌ์Šค์ธ ์›œ ๋ฐ”์ด๋Ÿฌ์Šค๋Š” ๋„คํŠธ์›Œํฌ๋ฅผ ํ†ตํ•ด ์ „ํŒŒ๋œ๋‹ค. ํ•œ ์ปดํ“จํ„ฐ๊ฐ€ ์›œ ๋ฐ”์ด๋Ÿฌ์Šค์— ๊ฑธ๋ฆฌ๋ฉด ๊ทธ ์ปดํ“จํ„ฐ์™€ ๋„คํŠธ์›Œํฌ ์ƒ์—์„œ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š” ๋ชจ๋“  ์ปด

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

[BOJ] ์ˆจ๋ฐ”๊ผญ์งˆ #1697

https://www.acmicpc.net/problem/1697์ถœ์ œ ๋นˆ๋„ ๋†’์Œ์•Œ๊ณ ๋ฆฌ์ฆ˜: ๊ทธ๋ž˜ํ”„ ๊ธฐ๋ณธ ํƒ์ƒ‰(BFS)์ˆ˜๋นˆ์ด๋Š” ๋™์ƒ๊ณผ ์ˆจ๋ฐ”๊ผญ์งˆ์„ ํ•˜๊ณ  ์žˆ๋‹ค. ์ˆ˜๋นˆ์ด๋Š” ํ˜„์žฌ ์  N(0 โ‰ค N โ‰ค 100,000)์— ์žˆ๊ณ , ๋™์ƒ์€ ์  K(0 โ‰ค K โ‰ค 100,000)์—

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