뇌운동일지

[Spring] framework VS library, sqlSession, Spring Service Layer 본문

Spring

[Spring] framework VS library, sqlSession, Spring Service Layer

purpleduck 2021. 3. 23. 20:14

프레임워크 = 클래스 + 라이브러리 

 

Application Framework (그냥 framework 라고 해도 된다)

프로그래밍에서 특정 운영 체제를 위한 응용 프로그램 표준 구조를 구현하는 클래스와 라이브러리 모임 

 

라이브러리는 도구의 모음. 

프레임워크는 지켜야하는 룰 


DAO (Data Access Object)

DB를 사용해 데이터 조회, 조작 기능 전담 객체 

 

mybatis - sqlSession 

applicationContext.xml 에 bean 으로 sqlSessionFactory 

 

Connection : 단순 물리적(네트워크) 연결

SqlSession : RDB 인증 거친 논리적 연결 상태 


Spring Service Layer 

Controller Layer (Representation Layer)

1. Client 가 이용할 End Point 

2. Client 가 요청 어떻게 처리할지 정의 

3. Client 요청 처리 후, 어떻게 응답할지 결정 

 

Repository Layer 

1. DAO Layer 

2. 다양한 Storage 에 데이터 조회, 저장, 수정, 삭제하기 위한 모든 객체들의 Layer 

 

Service Layer 

1. Business Logic 이 들어있는 Layer 

'Spring' 카테고리의 다른 글

[Spring] could not open jdbc connection for transaction  (0) 2021.04.29
CORS  (0) 2021.03.11
JNDI  (0) 2021.03.11
spring 에서 .xml 설정 이해하기  (0) 2021.03.09
spring 실행순서  (0) 2021.03.09
Comments