전체 글156 Java Mongoldb where not in Java MongoDB where 조건 not in List notIn = new ArrayList(); notIn.add("abce"); notIn.add("abcd"); BasicDBObject query = new BasicDBObject(). append("name", new BasicDBObject("$nin", notIn)); $nin 에 Java List 가 들어가면 된다. 2015. 11. 12. java where like 검색 방법. MongoDB Java Like 자바에서 like 검색 할 때. BasicDBObject q = new BasicDBObject(); q.put("name", java.util.regex.Pattern.compile(m)); dbc.find(q); 이렇게 하면 된다. 2015. 11. 12. Linux 기본적인 명령어. 파일 찾기, 문자열 찾기 리눅스 기본적인 명령어. 파일 목록보기 > ll 현 위치 보기 >pwd 현 위치에서 "파일명" 찾기 >find -name "파일명" 현 위치에서 디렉토리 명 찾기 >find -name "디렉토리명" -type d 현 위치에서 문자열 검색 >grep -r "문자열" ./* 2015. 11. 10. MongoDB 설정. MongDB 설정.구글링해보면 크게 2.4 버젼과 3.0 버젼으로 나옵니다. 2.4 url (https://docs.mongodb.org/v2.4/reference/configuration-options/) 3.0 url (https://docs.mongodb.org/manual/reference/configuration-options/) 둘간의 차이점은 분명한데 2.4 방식은 key=value 방식이고 3.0 방식은 yaml 방식으로 json과 흡사하다. 2.4 3.0 option 설정 dbpath=/data/db logpath=/data/log setParameter=logLevel=1 storage: dbPath:/data/db systemLog: destination:file path:"/var/.. 2015. 11. 9. 이전 1 ··· 19 20 21 22 23 24 25 ··· 39 다음