[Spring] warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.
·
Spring
* User class의 @Data에서 warning 발견warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.* 해결 방법 - @EqualsAndHashCode(callSuper = true) or @EqualsAndHashCode(callSuper = false) 추가@Data 에는 @Getter, @Setter, @RequiredArgsConstructor, @..
[MariaDB] 캐릭터셋 / 타임존 변경, 데이터베이스 생성, 계정 생성, 권한 부여
·
MariaDB
* 캐릭터셋, 타임존 변경my.cnf 수정 - utf8mb4 설정sudo nano /opt/homebrew/etc/my.cnf.d/client.cnf[client]default-character-set = utf8mb4socket = /tmp/mysql.socksudo nano /opt/homebrew/etc/my.cnf.d/mysql.cnf[mysql]default-character-set = utf8mb4sudo nano /opt/homebrew/etc/my.cnf.d/mysqld.cnf[mysqld]bind-address = 0.0.0.0skip-character-set-client-handshakecharacter-set-server = utf8mb4collation-server = utf8mb4..
[MariaDB] AWS RDS에서 MariaDB 접속 불가능 오류 ( ERROR 1045 (28000): Access denied for user 'root'@'%' (using password: YES) )
·
MariaDB
* AWS RDS에서 MariaDB 접속 불가능AWS RDS 보안 설정에서 인바운드 규칙과 외부 접속 허용에도 불구하고 접속에 실패했다.* 해결 방법 - bind-address 수정bind-address는 데이터베이스 서버에서 네트워크 인터페이스를 지정하는 설정이다. 데이터베이스 서버가 특정 IP 주소 또는 모든 네트워크 인터페이스에 바인딩하여 연결을 수락할지 여부를 지정할 수 있다.로컬 연결만 허용: 로컬 연결만 필요할 때, bind-address를 127.0.0.1로 설정하여 외부 접근을 막을 수 있다.외부 연결 허용: 서버가 외부에서 접근 가능해야 하는 경우, bind-address를 0.0.0.0으로 설정하여 모든 인터페이스에서 연결을 허용할 수 있다. - homebrew를 통해 MariaDB..
[Spring] AWS RDS - Spring boot ( MariaDB ) 프로젝트 연결 (2)
·
Spring
* 스프링 부트 (Spring Boot) - build.gradle : mariadb 의존성 추가dependencies { runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'} - application.properties : 데이터베이스(mariaDB) 연결정보와 관련 설정 # AWS 연동# JDBC 드라이버 클래스 이름spring.datasource.driver-class-name=org.mariadb.jdbc.Driver# 데이터베이스 URLspring.datasource.url=jdbc:mariadb://엔드포인트/데이터베이스_이름# 데이터베이스 사용자 이름spring.datasource.username=root# 데이터베이스 비밀번호spring.datasou..
[AWS] AWS RDS - Spring boot ( MariaDB ) 프로젝트 연결 (1)
·
AWS
* AWS 사이트 : https://aws.amazon.com/ko/ - AWS RDS 데이터베이스 생성한다.- 엔진 : MariaDB / 템플릿 : 프리 티어 선택- 마스터 사용자 이름(root, admin 등) / 암호 설정  - 퍼블릭 엑세스 설정(외부 연결 유무) - 포트번호 / 자동 백업 비활성화(비용 관리) 설정* 파라미터 그룹 수정 - 파라미터 그룹 생성 - 파라미터 그룹 편집(캐릭터셋, 콜레이션(collation), 타임존 수정)* VPC 보안 그룹 수정 - 데이터베이스 VPC 보안 그룹 선택 - VPC 보안 그룹 ID 선택 - 인바운드 규칙 편집 - Anywhere-IPv4 / Anywhere-IPv6 선택(보안에 취약하므로 추후에 특정 IP 주소나 IP 범위에 대해서만 접근을 허용하는..
[TIL] 99클럽 코테 스터디 2일차 TIL + 오늘의 학습 키워드
·
TIL
* 오늘의 학습 키워드 : 조합 - n 개의 숫잦 중에서 r 개의 수를 순서 없이 뽑는 경우를 말한다. * 프로그래머스  의상 : https://school.programmers.co.kr/learn/courses/30/lessons/42578 - 완전 탐색으로 풀려고 했는데 생각처럼 풀지 못했다. 다른 분들이 푼 방법을 통해 해결할 수 있었다.class Solution { public int solution(String[][] clothes) { Map map = new HashMap(); int answer = 1; //map에 의상의 종류에 몇개의 옷이 있는지 넣어준다. for(int i = 0; i * 알게된 것 1) g..
[TIL] 99클럽 코테 스터디 1일차 TIL + 오늘의 학습 키워드
·
TIL
* 오늘의 학습 키워드 : 해쉬맵 - 'HashMap'은 키(Key)와 값(value)쌍을 저장하는 자료 구조이다. 각 키는 고유하며, 키를 사용하여 해당하는 값을 빠르게 검색할 수 있다.* 프로그래머스 전화번호 목록 : https://school.programmers.co.kr/learn/courses/30/lessons/42577 - 처음에는 Loop로 문제를 풀었지만, 효율성이 안 좋다는 결과가 나와서 해쉬맵을 사용해 문제를 풀었다.class Solution { public boolean solution(String[] phone_book) { Map map = new HashMap(); //phone_book의 정보를 map에 담아준다. ..
[Flutter] Android Studio에서 내 아이폰 연결하기
·
Flutter
* 참고 사이트https://code-boki.tistory.com/110* 아이폰 설정 - 개인정보 보호 및 보안 - 개발자 도구가 안 보일때 - 참고 사이트 : https://velog.io/@bbahna/ios-developer-mode* Android Studio에서 빌드할 때 발생하는 오류 ( failed registering bundle identifier the app identifier "com.example.helloworld" cannot be registered to your development team because it is not available. change your bundle identifier to a unique string to try again. ) - 참고 사이..