You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
대표적인 애플리케이션 구조
프레젠테이션 계층
서비스 계층
데이터 접근 기술
서비스 계층이 핵심 비즈니스 로직이 들어있어 특정 기술에 종속적이지 않게 개발해야 한다.
서비스 계층을 최대한 순수하게 유지하기 위한 목적이 크다.
MemberServiceV1MemberServiceV1은 특정 기술에 종속적이지 않고 순수한 비즈니스 로직만 존재한다.지금은 참고만 할 문제들
MemberServiceV2javax.sql.DataSource,java.sql.Connection,java.sql.SQLException같은 JDBC 기술에 의존해야 한다는 점이다.문제 정리
3가지가 있다.
1. 트랜잭션 문제
2. 예외 누수
3. JDBC 반복 문제
MemberRepository코드는 순수한 JDBC를 사용했다.PreparedStatement를 사용하고 결과를 매핑하고 실행하고 커넥션과 리소스를 정리한다.All reactions