4 ways to inject dependency and Lombok
โ 4 Ways to inject dependency constructor setter field method ๐กConstructor dependency injection ๐๐ป recommended Injected at the moment when object is created with constuctor ๐๐ป o...
โ 4 Ways to inject dependency constructor setter field method ๐กConstructor dependency injection ๐๐ป recommended Injected at the moment when object is created with constuctor ๐๐ป o...
๐ก How to add Bean @Bean๋ฑ๋กํ๋ ๋ฐฉ๋ฒ 1๏ธโฃ manual bean configuration with @Configuration 2๏ธโฃ component scan with @ComponentScan, @Autowired ์ด ๊ฒ์๊ธ์์๋ 2๏ธโฃ๋ฒ ๋ฐฉ๋ฒ์ ๋ํด ์ค๋ช โ Component Scan Spring d...
โ Singleton create only one instance(object) of its kind and share among other code, providing a single point of access public class SingletonService { //create myself within myself ...
โ Spring Container and Bean โ๏ธ Spring container: manage object creation and DI and overall flow of the application Spring container ๐ฐ ApplicationContext โ๏ธ Bean: Objec...
โ Inversion of Control control flow is inversed from programmer to โก๏ธ external source(ex: framework) Framework will call my code, not the programmer ๐๐ป Before IoC programmer expli...
โ What is a good OOP distinguish role and implementation โ๏ธ role: interface, abstraction what something should do ex) OrderService, MemberRepository โ๏ธ implementation: class ...
โ โ โ โ โ โ โ โ โ โ
โ AOP Distinguish between cross-cutting concern and core concern ๊ณตํต ๊ด์ฌ ์ฌํญ๊ณผ ํต์ฌ ๊ด์ฌ ์ฌํญ์ ๋ถ๋ฆฌํ๊ธฐ ์๋ฅผ ๋ค์ด ํ์๊ฐ์ , ์ํ ์กฐํ, ์ฃผ๋ฌธ, ๊ตฌ๋งค๋ฑ ํ๋ ์ผํ๋ชฐ์ด ์๋ค๊ณ ํ์ ๊ทธ๋ฐ๋ฐ ์ฑ๋ฅ ์ธก์ ์ ์ํด ํ์๊ฐ์ , ์ํ ์กฐํ, ์ฃผ๋ฌธ, ๊ตฌ๋งค ๋ฉ์๋ ์๊ฐ์ ์ธก์ ํ๊ณ ...
โ H2 ๊ฐ๋ฐ, ํ ์คํธ ์ฉ์ผ๋ก ๊ฐ๋ฒผ์ด DB โ pure JDBC JDBC: service๊ฐ DB๋ฅผ accessํ ์ ์๋๋ก ํด์ค ๐๐ป ๋ฐ๋ณต๋๋ ์ฝ๋, resource ๋ฐํ ์ฝ๋ ๋ฑ ์ฝ๋ ๋ณต์ก Spring DI ๋์ ๊ธฐ์กด controller, service์ฝ๋๋ ๋ง์ง์ง ์๊ณ @Configurationํด๋์ค๋ง ๋ณ๊ฒฝํด...
๐ Summary โ๏ธ Optional if there is possibility to be null, Optional and use ifPresent โ๏ธ Test code: given, when, then Asssertions.assertThat() for exceptions, use Assertions.as...