๐ฉ๐ปTIL/Spring5 [Spring Batch] ์คํ๋ง๋ฐฐ์น ๊ฐ๋ /ํต์ฌ๊ธฐ๋ฅ/ํํฐ์ ๋ ๋ถํ ๋ฐฉ์ [Spring Batch] ์คํ๋ง๋ฐฐ์น ๊ฐ๋ /ํต์ฌ๊ธฐ๋ฅ/ํํฐ์ ๋ ๋ถํ ๋ฐฉ์ A๋ผ๋ ๊ณณ์ ์์ฌ์๋ ๋ฐ์ดํฐ๋ฅผ ์ฝ์ด์ B๋ผ๋ ๊ณณ๋ก ์ฎ๊ธฐ๋ ์ผ๋ จ์ ์์ ๐ก์คํ๋ง ๋ฐฐ์น๋? Spring Batch๋ ์ผ๊ด ์ฒ๋ฆฌ์ ์ฃผ๋ก ์ฌ์ฉ๋๋ spring ๊ธฐ๋ฐ ํ๋ ์์ํฌ ์ค ํ๋์ด๋ค. ์คํ๋ง๋ฐฐ์น์์ ์ ๊ณตํ๋ ํต์ฌ ๊ธฐ๋ฅ์ ํฌ๊ฒ ๋ค์๊ณผ ๊ฐ๋ค. ๐ ๋ฐ์ดํฐ๋ฒ ์ด์ค, ํ์ผ ๋๋ ํ์์ ๋ฐ์ดํฐ ์ฝ๊ธฐ(Reader) ๐ ๋ฐ์ดํฐ๋ฅผ ์ฌ์ฉ์๊ฐ ์ ์ํ ๋ฐฉ์์ผ๋ก ์ฒ๋ฆฌ(Processor) ๐ ์ฒ๋ฆฌ๋ ๋ฐ์ดํฐ๋ฅผ ์ฐ๊ธฐ(Writer) ์คํ๋ง ๋ฐฐ์น๋ ์์ ๊ฐ์ ๋ฐฉ์์ผ๋ก ์ฌ์ฉ์์์ ์ํธ์์ฉ ์์ด ๋ฐ๋ณต์ ์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ํธ๋์ญ์ ๋จ์๋ก ์ฒ๋ฆฌํ ์ ์๋๋ก ๊ตฌํ๋์ด ์๊ณ , ๊ฐ๋ฐ์๋ ๋ฐ์ดํฐ ์ฒ๋ฆฌ์ ๋ํ ๋น์ฆ๋์ค ๋ก์ง์๋ง ์ง์คํ์ฌ ๋ฐฐ์น ํ๋ก์ธ์ค๋ฅผ ์์ฑํ ์ ์๋ค. DB-> DB , D.. 2021. 8. 23. [WebFlux] Mono์ Flux ๊ฐ๋ ๊ณผ ๊ตฌํ [WebFlux] Mono์ Flux ๊ฐ๋ ๊ณผ ๊ตฌํ ๐ก WebFlux๋? Spring WebFlux๋ Spring 5์์ ์๋กญ๊ฒ ์ถ๊ฐ๋ ๋ชจ๋์ด๋ค. WebFlux๋ ํด๋ผ์ด์ธํธ, ์๋ฒ์์ reactive ์คํ์ผ์ ์ดํ๋ฆฌ์ผ์ด์ ๊ฐ๋ฐ์ ๋์์ฃผ๋ ๋ชจ๋์ด๋ฉฐ, reactive-stack web framework์ด๋ฉฐ non-blocking์ reactive stream์ ์ง์ํฉ๋๋ค. ๐๐ป WebFlux์ ๊ฐ๋ / Spring MVC์ ๊ฐ๋จ๋น๊ต ๋ ์์๋ณด๊ธฐ ๐ก Mono์ Flux Spring Webflux์์ ์ฌ์ฉํ๋ reactive library๊ฐ Reactor์ด๊ณ Reactor๊ฐ Reactive Streams์ ๊ตฌํ์ฒด์ด๋ค. ๊ทธ๋์ Webflux ๋ฌธ์์ Reactive Streams๊ฐ ์ธ๊ธ๋๋ ๊ฒ์ด๊ณ ๊ทธ๊ฑฐ์ ๊ฐ์ด Rea.. 2021. 5. 9. [Spring] WebFlux์ ๊ฐ๋ / Spring MVC์ ๊ฐ๋จ๋น๊ต ๐ก WebFlux๋? Spring WebFlux๋ Spring 5์์ ์๋กญ๊ฒ ์ถ๊ฐ๋ ๋ชจ๋์ ๋๋ค. WebFlux๋ ํด๋ผ์ด์ธํธ, ์๋ฒ์์ reactive ์คํ์ผ์ ์ดํ๋ฆฌ์ผ์ด์ ๊ฐ๋ฐ์ ๋์์ฃผ๋ ๋ชจ๋์ด๋ฉฐ, reactive-stack web framework์ด๋ฉฐ non-blocking์ reactive stream์ ์ง์ํฉ๋๋ค. ์ฅ์ : ๊ณ ์ฑ๋ฅ, spring ๊ณผ ์๋ฒฝํ ํตํฉ, netty ์ง์, ๋น๋๊ธฐ non-blocking ๋ฉ์ธ์ง ์ฒ๋ฆฌ ๋จ์ : ์ค๋ฅ์ฒ๋ฆฌ๊ฐ ๋ค์ ๋ณต์กํ๋ค. ์คํ๋ง5๋ Spring Boot 2 ๋ถํฐ ๋์ ์ด ๋์์ผ๋ฉฐ, Spring Boot 2 ์ stack ๋ ์๋์ ๊ฐ์ต๋๋ค. Reactive Stack ๋ฅผ ์ฌ์ฉํ ์ง, Servlet Stack ๋ฅผ ์ฌ์ฉํ ์ง ์ ํ์ด ํ์ํฉ๋๋ค. ๐กSpring MVC vs... 2021. 5. 7. [Spring Security] ์คํ๋ง์ํ๋ฆฌํฐ ์์ํ๊ธฐ /๊ธฐ๋ณธ์ธํ [Spring Security] ์คํ๋ง์ํ๋ฆฌํฐ ์์ํ๊ธฐ /๊ธฐ๋ณธ์ธํ ๐ก ์คํ๋ง ์ํ๋ฆฌํฐ ์์ํ๊ธฐ(๊ธฐ๋ณธ์ธํ ) 1. dependency ์ถ๊ฐ org.springframework.security spring-security-web 4.2.2.RELEASE org.springframework.security spring-security-config 4.2.2.RELEASE dependencies { compile 'org.springframework.security:spring-security-web:4.2.2.RELEASE' compile 'org.springframework.security:spring-security-config:4.2.2.RELEASE' } ๋ฒ์ ์ ์ฌ์ฉํ๋ ํ๋ก์ ํธ์ ๋ง๊ฒ ๋ฐ๊ฟ์ฃผ์๋ฉด ๋ฉ๋๋ค.. 2020. 5. 15. [Spring Security] ์คํ๋ง์ํ๋ฆฌํฐ์ ๊ธฐ๋ณธ ๊ฐ๋ ๊ณผ ๊ตฌ์กฐ [Spring Security] ์คํ๋ง์ํ๋ฆฌํฐ์ ๊ฐ๋ /์์ํ๊ธฐ /๊ธฐ๋ณธ์ธํ ๐ก ์คํ๋ง์ํ๋ฆฌํฐ(Spring Security)๋? ์คํ๋ง ์ํ๋ฆฌํฐ๋ ์คํ๋ง ๊ธฐ๋ฐ์ ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ณด์(์ธ์ฆ๊ณผ ๊ถํ, ์ธ๊ฐ ๋ฑ)์ ๋ด๋นํ๋ ์คํ๋ง ํ์ ํ๋ ์์ํฌ์ ๋๋ค. ์ฆ ์ธ์ฆ(Authenticate, ๋๊ตฌ์ธ์ง?) ๊ณผ ์ธ๊ฐ(Authorize, ์ด๋ค๊ฒ์ ํ ์ ์๋์ง?)๋ฅผ ๋ด๋นํ๋ ํ๋ ์์ํฌ๋ฅผ ๋งํฉ๋๋ค. ์คํ๋ง ์ํ๋ฆฌํฐ์์๋ ์ฃผ๋ก ์๋ธ๋ฆฟ ํํฐ(filter)์ ์ด๋ค๋ก ๊ตฌ์ฑ๋ ํํฐ์ฒด์ธ์ผ๋ก์ ๊ตฌ์ฑ๋ ์์๋ชจ๋ธ์ ์ฌ์ฉํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ๋ณด์๊ณผ ๊ด๋ จํด์ ์ฒด๊ณ์ ์ผ๋ก ๋ง์ ์ต์ ์ ์ ๊ณตํด์ฃผ๊ธฐ ๋๋ฌธ์ ๊ฐ๋ฐ์ ์ ์ฅ์์๋ ์ผ์ผ์ด ๋ณด์๊ด๋ จ ๋ก์ง์ ์์ฑํ์ง ์์๋ ๋๋ค๋ ์ฅ์ ์ด ์์ต๋๋ค. ๊ธฐ๋ณธ์ฉ์ด ์ ๊ทผ ์ฃผ์ฒด(Principal) : ๋ณดํธ๋ ๋ฆฌ์์ค์ ์ ๊ทผํ๋ ๋์.. 2020. 5. 12. ์ด์ 1 ๋ค์