일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- 토토이크 떠돌이상인
- SSL
- IT용어
- 애니츠 떠돌이상인
- 특정페이지가로로
- SI
- 한글
- 홈페이지제작견적
- 파푸니카 떠돌이상인
- zoom
- 작은화면
- sm
- 슈샤이어 떠돌이상인
- 가로세로세팅
- HWP
- 루테란 떠돌이상인
- 유튜브
- 3
- 페이튼 떠돌이상인
- 아르데타인 떠돌이상인
- SE
- https
- PIP모드
- 베른 떠돌이상인
- 이름바꾸기
- 로헨델 떠돌이상인
- 욘 떠돌이상인
- Today
- Total
목록IT 공부/KH 정보교육원 (52)
도담도담
ORM 객체 지향 개념을 이용하여 관계형 데이터베이스에 적용(보존) 하는 기술 즉, 객체지향을 관계형으로 매핑하는 개념 객체지향 구조와 관계형 데이터베이스와 유사 객체지향 관계형 데이터베이스 데이터구조 클래스 테이블 데이터 멤버변수(데이터타입) 컬럼(데이터타입) 데이터 보관 인스턴스 Row(레코드) 차이점 객체지향 (행위)메서드 데이터, 행위 데이터 결론 ORM은 객체지향과 관계형 사이의 변환 기법을 의미. JPA ORM을 Java 언어에 맞게 사용할 수 있도록 제공되는 스펙 ORM이 상위 개념이고, JPA는 Java언어에 국한된 개념 JPA는 단순한 스펙이기 때문에 구현체(Hibernate 등)마다 프레임워크가 다를 수 있다. Hinernate 스프링 부트는 JPA 구현체 중 Hinernate를 이용 ..
웹 프로젝트에 관련된 프레임워크 : Spring (다른프로그램에 대한 이식성이 좋다) Struts (이식성이 안좋다) 데이터베이스에 관련된 프레임워크 : Mybatis
@NonNull : 해당 값이 Null 일경우 NullPointerException을 발생한다. @Cleanup : 자동 리소스 관리 : close() 메소드를 귀찮음 없게 안전하게 호출 @Getter(lazy=true) : 동기화를 이용하여 최초 1회만 getter가 호출 @Getter / @Setter : getter, setter 를 코딩하지 않도록 자동 생성 지원 @ToString : 모든 필드를 출력하는 toString() 메서드 생성 @EqualsAndHashCode : hascode 와 equals 메서드를 생성 @NoArgsConstructor : 인자 없는 생성자 생성 @RequiredArgsConstructor : 필수 인자만 있는 생성자 생성 @AllArgsConstructor : 모..
1. SqlSession 내 선언되어 있는 메서드를 이용하는 방법 SqlSession객체.insert("Mapper의 namespace.태그id", VO객체); .delete("Mapper의 namespace.태그id", VO객체); .update("Mapper의 namespace.태그id", VO객체); .selectOne("Mapper의 namespace.태그id", VO객체); .selectList("Mapper의 namespace.태그id", VO객체); 2. 개발자가 새로운 메서드를 선언하여 이용하는 방법 interface 선언 public interface BoardMapper{ public void insertBoard(Vo vo); public void updateBoard(Vo vo); ..

web.xml : 요청이랑 상관없이 미리 등록 root-context.xml : 미리등록 해놓아야 할 객체들 mybatis-config.xml : 매핑 객체 및 SQL 매퍼파일 Mapper.xml : SQL 쿼리 servlet-context.xml : 요청이 들어왔을 때 등록해 놓아야 할 객체들 pom.xml : Maven 설정 web.xml 1. 사전 등록 contextConfigLocation /WEB-INF/spring/root-context.xml org.springframework.web.context.ContextLoaderListener root-context.xml db.properties 가 있어야 밑에 애들이 미리 등록된다.

Spring MVC 프로젝트의 주요 폴더 src/main/java : 개방되는 Java 코드 src/main/resources : 서버가 실행될 때 필요한 파일들 (Configuration / Mapper / DataSource.properties) WEB-INF/spring : 스프링 설정 파일 WEB-INF/views : JSP파일 pom.xml : Maven 설정 Mybatis 관련 xml 문서 생성 1. Mapper 파일 생성 src/main/resources => mapper => todoMapper.xml 2. Configuration 파일 생성 src/main/resources => mybatis-config.xml --DataSource 정보 파일 생성-- src/main/resources..
1. applicationContext.xml에 스프링 제공 sqlSessionFactoryBean 클래스 등록 2. Sql SessionDaoSupport를 상속 받는 DAO 작성 (주요 부분만..) @Repository public class BoardDAOMybatis extends SqlSessionDaoSupport { @Autowired public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) { super.setSqlSessionFactory(sqlSessionFactory); } public void insertBoard(BoardVO vo){ System.out.println("==>Mybatis로 insertBoard(..
결과 화면(콘솔) 각 결과물과 연관된 내용들 // ibatis-core 라이브러리 => myBatis 프레임워크 14:19:56.380 [main] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter. // PooledDataSource => 14:19:56.533 [main] DEBUG o.a.i.d.pooled.PooledDataSource - PooledDataSource forcefully closed/removed all connections. 14:19:56.533 [main] DEBUG o.a.i.d.pooled.P..