1. 개요Spring Boot 신규 프로젝트를 위한 MySQL 데이터베이스를 설치한다. 2. 설치MySQL 다운로드 페이지 접속https://downloads.mysql.com/archives/installer/ MySQL :: Download MySQL Installer (Archived Versions)Please note that these are old versions. New releases will have recent bug fixes and features! To download the latest release of MySQL Installer, please visit MySQL Downloads. MySQL open source software is provided under the ..
1. 개요지난 포스팅에서는 Redis를 Windows 환경에서 설치해보고, 간단한 명령어 테스트 및 설정변경 방법을 알아보았다. 이번 포스팅에서는 Redis의 지원 자료구조와 관련된 명령어를 알아보겠다. 2. Redis 지원 자료구조2-1. 문자열set : Key-Value(JSON)를 저장하는 명령어이다.get : 저장한 JSON을 key값을 통해 출력하는 명령어이다.27.0.0.1:6379> set username davidOK127.0.0.1:6379> set username ronaldoOK127.0.0.1:6379> get username"ronaldo"127.0.0.1:6379> 먼저 'david'라는 username을 저장했고, 그 다음 다시 username을 'ronaldo'로 저장했다. ..
1. 지연로딩엔티티 조회 시 일반 멤버 변수만 먼저 조회되고, 객체(연관관계 엔티티)로 되어 있는 멤버 변수 조회 시, 가짜 객체로 먼저 조회되고, 실제 멤버 변수가 조회될 때, 실제 쿼리를 한번 더 실행시키는 기법이다. 말이 좀 어려운데, 간단한 코드로 보면@Entity@Getter@NoArgsConstructor(access = AccessLevel.PROTECTED)public class Member{ @Id @GeneratedValue @Column(name = "member_id") private Long id; private String name; private int age; // 연관관계 엔티티 @ManyToOne(fetch = FetchType..
1. 개요Redis를 설치해보고 테스트하기 위해 윈도우 환경에서 설치한다. 책 > 에서 나온 방법은 2013년 버전이라 너무 오래되었으므로, 구글링을 통해 진행하였다. 2. 설치https://github.com/microsoftarchive/redis/releases 에 접속하여 윈도우 버전 Redis를 설치한다. 밑 줄 친 msi 파일을 다운로드 받는다. next를 눌러준다. 동의 후 next 경로 설정 후 next 'Add an exception to the windows Firewall.' 체크 후 next를 눌러준다. 여기서 6379는 Redis의 기본포트이다. next install을 눌러 설치해준다. finish를 눌러 설치를 완료해준다. 3. Redis 실행win + R 후 'services..