본문 바로가기

분류 전체보기

(452)
[Level 1][C++] 두 정수 사이의 합 #include #include using namespace std;long long solution(int a, int b) { if(a==b) return (long long)a; int min, max; min = (ab)? a:b; long long answer = 0; for(int i=min; i
Kendo React Library에서 Warning: Failed prop type: Invalid prop `children` supplied to `a2` 발생 문제React에서 Kendo Library를 사용해서 화면을 개발하는데, 콘솔창에 아래와 같은 warning이 발생했다.원인React에서 아래와 같이 ButtonGroup과 Button을 사용하고 있었다.조건절인  {buttonControl.button.visibility && ( .... )} 부분을 제거하니 warning이 없어졌다.ButtonGroup이 Button에 prop을 전달해야되는데 조건절로 인해 warning이 발생한 거 같다.  해결ButtonGroup을 이용해 Button 전체를 조절할 일이 없어서, 아래와 같이 ButtonGroup을 제거하였더니 문제가 해결되었다.
클라이언트에서 response.headers['content-disposition'] 호출할 때 undefined로 가지고 올 수 없는 문제. 네트워크에는 response 헤더에 노출 됨. 문제Front에서 파일 다운로드 기능 구현 중, Content-Disposition Response 헤더에 정의되어 있는 fileName을 가지고 오려고 했다.response.headers['content-disposition'] 를 해보지만 undefined이다.  네트워크 헤더에는 filename을 가지고 오고 있었다. 원인기본적으로, 브라우저는 CORS(Cross-Origin Resource Sharing)요청에 대한 응답에서 몇 가지 표준 헤더만 클라이언트에게 노출한다. 기본 표준 헤더는 아래와 같다. Cache-ControlContent-LanguageContent-TypeExpiresLast-ModifiedPragma 그래서 위 값들은 response.headers에 존재하였다.  기본적으로 ..
Maven 빌드로 배포 시, 로컬 Repository의 의존성 캐싱 문제로 Build Failure 된 문제 (-U 옵션) 문제서버에 Maven으로 Project를 배포하는 데 아래와 같은 이유로 Build Failure이 일어났다.이 날 Project에서 다운 받을 라이브러리가 먼저 배포되었고, 그 다음에 Project를 배포하였다. 그런데 Project 배포할 때 문제가 생겼다. [exec] [ERROR] Failed to execute goal on project [프로젝트이름]: Could not resolve dependencies for project [프로젝트 이름]:jar:[버전]: Failure to find [다운받을 라이브러리]:jar:[라이브러리 버전] in https://[원격 Repostiory 도메인]/repositories/releases/ was cached i..
TestCode 실행 시 liquibase에서 Table "DATABASECHANGELOG" already exists; SQL statement 에러 문제 Test Code를 돌릴 때 liquibase에서 아래와 같이 'DATABASECHANGELOG" already exists; SQL statement' 라는 에러가 났다. liquibase로 changelog 중 schema.xml을 만들 때 DATABASECHANGELOG라는 테이블을 포함하지 않았고, 생성된 schema.xml에도 create하는 부분이 없는데 DATABASECHANGELOG 생성을 시도하고 있었다. 원인 DATABASECHANGELOG는 liquibaes에서 사용하고 있는 테이블이고, 없으면 liquibase에서 자동으로 생성한다. liquibase에서 DATABASECHANGELOG 테이블을 만들 때, 테이블이 있는 지 없는 지 조사한다. 조사할 때 이미 존재했던 DATAB..
liquibase에서 changelog 중 data.xml 생성할 때, GC overhead limit exceeded 에러 문제 liquibase로 changelog 중 data.xml을 생성하려고 했는데, 빈 data.xml이 생성되었다. 로그를 확인하니, data.xml 생성 도중 아래와 같이 GC overhead limit exceeded 에러가 발생했다. 실행한 liquibase 쉘 스크립트는 아래와 같다. INCLUDE_OBJTECTS는 data.xml 파일을 만들 때 포함할 테이블 목록이 있고, 테이블 양이 33개 정도 되었다. JDBC_DRIVER_HOME=${HOME}/.m2/repository/mysql/mysql-connector-java JDBC_DRIVER_VERSION=8.0.12 CLASSPATH=${JDBC_DRIVER_HOME}/${JDBC_DRIVER_VERSION}/mysql-connector..
Test 코드에서 h2 database로 MySql 쿼리 실행 시 row_number에서 syntax 에러 문제 MySql 조회 Query에 row_number를 사용하는 필드를 추가하고, Test Code를 돌렸는데, 아래와 같은 에러가 났다. Caused by: org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement JOOQ로 작성한 쿼리와 실행된 SQL 쿼리는 대략 아래와 같았다. JOOQ Field groupSeqField = DSL.rowNumber() .over(partitionBy(tProduct.GROUP_CD) .orderBy(tProduct.ID.asc())) .as("groupSeq"); dslContext.select( tProduct.ID, groupSeqField ) .from(tProduct) .fetchInto(Product.cl..
#155 International Commerce 2 Key Word hazard: a source of danger; chance, risk When it comes to investments, research shows that women are more likely to weigh up potential hazards than their male counterparts. weigh up: 가늠하다. 따지다 intuitive: readily learned or understood As we enter new markets, it is more important than ever to make our products intuitive, so that people across cultures find them natural to use. backlash: ..
#154 International Commerce 1 Key Word window of opportunity: a brief time period in which an opportunity exists This year’s low-interest rate offered a window of opportunity to get easy credit and fund expansion. task force: a group of people working together to do a particular job, esp. to solve a problem The president’s task force was assigned to study the effect of higher tax rates on income mobility and federal revenue...
Jenkins나 Spring Boot에서 Test 시, liquibase 외래키 참조 에러 문제 Test 코드를 돌리거나, Jenkins에서 Test를 실행할 때 data.xml 관련해서 아래와 같은 에러가 났다. product 테이블에 product_code컬럼에 '상품 코드' 값을 넣으려고 하는데, '상품 코드' 값이 product_code 테이블에 존재하지 않는다는 의미다. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/linecorp/ladb/oacms/sd/sync/config/LiquibaseConfiguration.class]: Invocation of init meth..