728x90
반응형
728x90
반응형
Spring Framework DI https://hoooon-s.tistory.com/197?category=1069858 [Spring] Inversion of Control & Dependency Injection Spring Framework 스프링 프레임워크는 자바 플랫폼을 위한 오픈 소스 애플리케이션 프레임워크이다. 자바로 서비스를 개발할 때 비즈니스 로직뿐 아니라 트랜잭션 등의 로직까지 작성해야 하는 부 hoooon-s.tistory.com AOP https://hoooon-s.tistory.com/198?category=1069858 [Spring] AOP - Aspect Oriented Programming AOP (Aspect Oriented Programming) 관점 지향 프로그래밍..
PSA (Portable Service Abstraction) 환경의 변화에 관계없이 일관된 방식의 기술 접근 환경을 제공하려는 추상화 구조 즉, 일부 코드 변경만으로도 완전히 다른 기술로 동작이 가능한(Portable) 서비스 추상화(Service Abstraction) 구조이다. Tomcat & Netty 간단한 gradle 의존성 변경으로 tomcat 또는 netty 사용이 가능하다. // tomcat dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' } // netty dependencies { implementation 'org.springframework.boot:spring-boot-starter-..
AOP (Aspect Oriented Programming) 관점 지향 프로그래밍 흩어진 Aspect를 모듈화할 수 있는 프로그래밍 기법이다. 동일한 색상의 선을 중복되는 메서드 & 필드 & 코드라고 가정할 때, 여러 클래스에 반복되서 사용 되기 때문에 흩어진 관심사(Crosscutting Concerns)이라 부른다. 그리고 흩어진 관심사를 Aspect로 모듈화하고 핵심적인 비즈니스 로직에서 분리하여 재사용하는 것이 AOP다. Interceptor, Filter도 일종의 AOP이다. 또한, 중복되는 주황색 부분의 수정이 생기면 A, B, C 클래스 모두 수정을 해야 한다. 이는 SOLID 원칙 중 SRP(Single Responsibility Programming)에 위반된다. Spring AOP 스프..