전체 글

-
docker로 MYSQL writer-reader 구성하던 중 mysql> SHOW MASTER STATUS;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MASTER STATUS' at line 1 해당 내용 발생지피티한테 갈구다가 도돌이표처럼 해결책 제시 -> 결국 같은 문제가 발생하여검색 후 공식 문서에서 내용 확인하였음 https://dev.mysql.com/doc/refman/8.4/en/show-master-status.html MySQL :: MySQL 8.4 Re..
[MYSQL] SHOW MASTER STATUS; ERROR 1064docker로 MYSQL writer-reader 구성하던 중 mysql> SHOW MASTER STATUS;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MASTER STATUS' at line 1 해당 내용 발생지피티한테 갈구다가 도돌이표처럼 해결책 제시 -> 결국 같은 문제가 발생하여검색 후 공식 문서에서 내용 확인하였음 https://dev.mysql.com/doc/refman/8.4/en/show-master-status.html MySQL :: MySQL 8.4 Re..
2025.07.09 -
nslookup myip.opendns.com resolver1.opendns.com
공인 IP 확인하기nslookup myip.opendns.com resolver1.opendns.com
2024.02.21 -
API 호출에 대한 공통 응답 객체를 만들어보자 일단 여기서는 JSend를 참고하고 좀 더 간소화해서 만들었다 1. 성공 시 JSON { "status": "success", "body": { "exampleKey": "exampleValue" } } 2. 실패 시 JSON { "status": "error", "errorMessage": "API 실패 메세지" } 1. 정의된 API Response에 맞는 응답객체 만들기 2. ExceptionHandler를 통해 에러 발생시 실패 응답 생성 3. ResponseBodyAdvice를 사용해 성공 / 실패 시 응답 객체 생성 ErrorResponse 객체를 따로 둔 이유는 위의 예제에서는 그냥 이 글을 쓰기 위해서 errorMessage 하나만을 뒀지만,..
API 공통 응답 객체 만들어보기API 호출에 대한 공통 응답 객체를 만들어보자 일단 여기서는 JSend를 참고하고 좀 더 간소화해서 만들었다 1. 성공 시 JSON { "status": "success", "body": { "exampleKey": "exampleValue" } } 2. 실패 시 JSON { "status": "error", "errorMessage": "API 실패 메세지" } 1. 정의된 API Response에 맞는 응답객체 만들기 2. ExceptionHandler를 통해 에러 발생시 실패 응답 생성 3. ResponseBodyAdvice를 사용해 성공 / 실패 시 응답 객체 생성 ErrorResponse 객체를 따로 둔 이유는 위의 예제에서는 그냥 이 글을 쓰기 위해서 errorMessage 하나만을 뒀지만,..
2024.01.28 -
Settings > Editor > General > Code Folding One-line methods 해제
인텔리제이 한 줄 짜리 코드 자동으로 접히는거 풀기Settings > Editor > General > Code Folding One-line methods 해제
2023.10.23 -
application.yml 에 값을 세팅하고 불러와보자 custom-property: person: first-name: "John" last-name: "Doe" age: 99 etc: etc1: "추가정보1" etc2: "추가정보2" etc3: 1234 @Value @Slf4j @Component public class ExternalPropertiesV1 implements ApplicationRunner { @Value("${custom-property.person.first-name}") private String firstName; @Value("${custom-property.person.last-name}") private String lastName; @Value("${custom-pr..
@Value / @ConfigurationProperties 사용해보기application.yml 에 값을 세팅하고 불러와보자 custom-property: person: first-name: "John" last-name: "Doe" age: 99 etc: etc1: "추가정보1" etc2: "추가정보2" etc3: 1234 @Value @Slf4j @Component public class ExternalPropertiesV1 implements ApplicationRunner { @Value("${custom-property.person.first-name}") private String firstName; @Value("${custom-property.person.last-name}") private String lastName; @Value("${custom-pr..
2023.04.05 -
문제 출처 : https://school.programmers.co.kr/learn/courses/30/lessons/154538 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr BFS를 사용해서 풀이를 진행함 x + n x * 2 x * 3 을 한 루프에서 진행해 조건에 맞고 (
[프로그래머스] 숫자변환하기문제 출처 : https://school.programmers.co.kr/learn/courses/30/lessons/154538 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr BFS를 사용해서 풀이를 진행함 x + n x * 2 x * 3 을 한 루프에서 진행해 조건에 맞고 (
2023.02.02