일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- zip 암호화
- TensorFlow
- 900gle
- matplotlib
- token filter test
- analyzer test
- Java
- API
- MySQL
- Mac
- plugin
- Kafka
- license delete
- Python
- License
- Test
- Elasticsearch
- high level client
- sort
- 파이썬
- ELASTIC
- query
- 차트
- licence delete curl
- springboot
- zip 파일 암호화
- aggs
- flask
- docker
- aggregation
- Today
- Total
목록JAVA (71)
개발잡부
900gle crawler 에서 사용할 사이트 객체를 관리하려고 한다 우선 URL package com.bbongdoo.doo.component; import org.springframework.web.util.UriComponentsBuilder; public class Naver extends Site { private static final String URL = "https://search.shopping.naver.com"; @Override public String getUrl(String k, int i) { return UriComponentsBuilder.fromHttpUrl(URL) .queryParam("frm", "NVSHATC") .queryParam("origQuery", k) ..
AtomicInteger 여러 스레드에서 동시에 액세스할 수 있는 다중 스레드 환경에서 원자 정수 카운터로 사용할 수 있는 Java의 클래스입니다. AtomicInteger는 synchronized 보다 적은 비용으로 동시성을 보장할 수 있습니다. y = atomic.get(); -> y = i; y = atomic.incrementAndGet(); -> y = ++i; y = atomic.getAndIncrement(); -> y = i++; y = atomic.decrementAndGet(); -> y = --i; y = atomic.getAndDecrement(); -> y = i--; y = atomic.addAndGet(x); -> i = i + x; y = i; y = atomic.getAnd..
그 동안 잘 동작하던 내 900gle 이 저런 hibernate.properties not found 비명을 지르고 죽엇다.. 너무 방치했나.. 기존에 잘 됐던게 왜이럴까 하면서 해결 방법은 아래 내용을 gradle.build 파일에 추가 // https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
주요 매서드 매 서 드 설 명 char charValue() Character 오브젝트의 값을 리턴한다. int compareTo(Character anotherCharacter) 2개의 Character를 수치로서 비교한다. int compareTo(Object o) Character 객체를 지정된 객체와 비교한다. static int digit(char ch, int radix) 지정된 기수에서의 문자 ch의 수치로서의 값을 리턴한다. boolean equals(Object o) 현재 객제와 지정된 객체가 같은지 비교한다. static char forDigit(int digit, int radix) 지정된 기수에서의 지정된 숫자의 문자 표현을 판정한다. static int getNumericValue..

Java에서 File 클래스사용 방법 mkdir - 디렉토리 생성 mkdirs - 디렉토리 경로 전체 생성 list - 디렉토리 안의 파일 목록 listFiles - 디렉토리 안의 파일 목록 테스트 해당경로 확인 String dir = "/data/static"; File file = new File(dir); file.list file.listFiles
ReflectionTestUtils?? ReflectionTestUtils 는 Spring Test Context 프레임워크의 일부입니다. 이는 단위에서 사용되는 리플렉션 기반 유틸리티 메서드의 모음이며, 비공개 필드를 설정하고 비공개 메서드를 호출하고 의존성을 주입하기 위한 통합 테스트 시나리오 import org.springframework.test.util.ReflectionTestUtils; @Test public void test_weightLogic_getPriceWeight(){ assertEquals( ReflectionTestUtils.invokeMethod( new Weight(), "getPriceWeight", 5600L), (Double)1.49); } @Test public vo..
자바에서 제네릭(generic)이란 데이터의 타입(data type)을 일반화한다(generalize)는 것을 의미 이렇듯 제네릭(Generic)은 클래스 내부에서 지정하는 것이 아닌 외부에서 사용자에 의해 지정되는 것을 의미한다. 한마디로 특정(Specific) 타입을 미리 지정해주는 것이 아닌 필요에 의해 지정할 수 있도록 하는 일반(Generic) 타입이라는 것이다. 장점 1. 제네릭을 사용하면 잘못된 타입이 들어올 수 있는 것을 컴파일 단계에서 방지 2. 클래스 외부에서 타입을 지정해주기 때문에 따로 타입을 체크하고 변환해줄 필요가 없다. 3. 비슷한 기능을 지원하는 경우 코드의 재사용성 타입 설명 Type Element Key Value Number 제네릭의 선언 및 생성 자바에서 제네릭은 클래..
Build file '/Users/doo/homeplus/project/common/indexer-common/build.gradle' line: 53 build.gradle 파일의 53번째 라인은 compile fileTree(dir: './libs', include: ['*.jar']) Cannot change dependencies of configuration ':compile' after it has been resolved.
https://blog.doosikbae.com/entry/IntelliJ%EB%A1%9C-Spark-%EA%B0%9C%EB%B0%9C-%ED%99%98%EA%B2%BD-%EA%B5%AC%EC%B6%95%ED%95%98%EA%B8%B0 IntelliJ로 Spark 개발 환경 구축하기 Introduction 여러 클라우드 환경이나 컨테이너 환경에서 간단하게 Spark를 사용할 수 있지만 local 환경에서도 Spark를 실행시킬수 있는 환경을 만들어두면 가볍게 테스트 할 수 있는 것들이 많아서 Loc blog.doosikbae.com (base) ➜ elastic-stack git:(master) ✗ brew install scala:2.13.7 Running `brew update --auto-updat..
LocalDateTime now = LocalDateTime.now(ZoneId.of("Asia/Seoul"));//한국시간 System.out.println(now);//2021-02-23T11:23:45.889 //시간을 -> yyyyMMddHHmmss로 format할 수 있음. DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMddHHmmss"); System.out.println(now.format(dtf));//20210223115035 //문자를 -> date로 파싱하기 LocalDateTime parse = LocalDateTime.parse("20210223114621",dtf); System.out.println("parse : "+..