본문 바로가기

전체 글182

DB 컬럼명을 자바 프로퍼티명으로 자동 매핑 시키기 DB 컬럼명을 자바 프로퍼티명으로 자동 매핑 시키기 예전에 MyBatis로 개발했을 때에는 DB 컬럼명과 자바 프로퍼티명을 아래와 같이 resultMap에 일일히 매핑시켰었다. 하지만 이를 자동으로 할 수 있는 방법이 있다. 다음과 같이 MyBtis 설정에서 mapUnderscoreToCamelCase 을 true로 주면 된다. ... ... 더 자세한 글은 다음 URL을 참조하세요. 참조 : http://www.mybatis.org/mybatis-3/ko/configuration.html 2018. 9. 2.
[codility] Nesting 문제)URL : https://app.codility.com/programmers/lessons/7-stacks_and_queues/nesting/ 정답)Stacks and Queues - Nesting/* * Complexity: * expected worst-case time complexity is O(N); * expected worst-case space complexity is O(1) * (not counting the storage required for input arguments). * * my answer URL : https://app.codility.com/demo/results/trainingPWC93R-SRE/ */ class Nesting { public int solutio.. 2018. 8. 27.
[Codility] Distinct 문제)URL : https://app.codility.com/programmers/lessons/6-sorting/distinct/ 정답)Distinct.javaimport java.util.Arrays; class Distinct { public static int solution(int[] A) { Arrays.sort(A); //If there are no follow if-clause, extreme_empty error occurs. if (A.length == 0) return 0; if (A.length == 1) return 1; int count = 1; for (int i = 0; i 2018. 8. 24.
톰캣 서버 두 개 띄우기 지금 부터 로컬에서 두 개의 톰캣 서버를 띄우는 방법을 알려드리겠습니다. 1. 톰캣 폴더 복사하기 우선 톰캣 파일이 있는 폴더로 이동합니다. ↑위 그림과 같이 기존에 1개 있던 톰캣 폴더를 다른 이름으로 복사하세요. 기존 폴더: tomcat-9.0.8복사한 폴더: tomcat-9.0.8_2 2. server.xml 파일에서 port 번호 수정하기 아래 그림과 같이 {TOMCAT_HOME}/conf/ 경로에서 server.xml 파일을 여세요. port 번호를 다 바꾸어줍니다.저 같은 경우에는 port 번호 앞자리를 8에서 9로 바꾸었습니다.ex.) 8005 -> 9005 8080 -> 9080 8443 -> 9443 3. service.bat 파일 수정하기 아래와 같이 {TOMCAT_HOME}/bin/ .. 2018. 8. 24.
Javascript / jQuery 배열 데이터 타입 받는 법 var obj = new Object();var arr = new Array();obj.id = 'test_1';obj.pw = '123';arr.push(obj); var objA = new Object();var arrA = new Array();objA.id = 'abc';objA.pw = '111';arrA.push(objA);arr.push(arrA); //console.log( 'arr type 1 : ' + typeof(arr)); //object//console.log( 'arr type 2 : ' + $.type(arr)); //array for(var i=0; i 2018. 3. 5.
빅데이터 분류 ㅇ 빅데이터 아키텍처 단계 - 수집, 저장, 처리, 탐색, 분석, 응용 ㅇ 수집기술: (SW) Flume, Fluented, Scribe, Logstash, Chukwa = 플럼(아파치 최상위 프로젝트, 원자료 수집기술-통신프로토콜.메시지포맷.발생주기.데이터 크기 등) ㅇ 저장기술: - HDFS(대용량파일 영구저장) - NoSQL(대규모 메시징 데이터 영구저장, HBase.MongoDB.Casandra) - 인메모리(Red is, Memcashed) - 메시지 오리엔티드 미들웨어(대규모 메시징 데이터를 임시저장, Kafka.RabbitMQ, ActiveMQ) - 예: 분산파일시스템은 하둡, NoSQL 저장소로는 HBase, 분산캐시저장소는 레디스, 메시지저장소는 카프카(Kafka) = 카프카: 대규모 발.. 2018. 2. 18.
반응형