일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Kafka
- License
- licence delete curl
- token filter test
- 차트
- docker
- license delete
- 900gle
- aggs
- analyzer test
- MySQL
- TensorFlow
- query
- matplotlib
- Mac
- zip 파일 암호화
- flask
- sort
- Java
- ELASTIC
- plugin
- zip 암호화
- springboot
- Elasticsearch
- aggregation
- API
- Test
- 파이썬
- Python
- high level client
- Today
- Total
목록JAVA/java (26)
개발잡부
ss
local 에서 개발을 하다보면 포트번호가 충돌나서 아래와 같은 에러가 발생한다. springboot 의 embedded tomcat 을 사용하고 있었는데 brew 를 통해서 하둡을 설치하다 톰켓이 설치되어 에러가 발생 *************************** APPLICATION FAILED TO START *************************** Description: Web server failed to start. Port 9090 was already in use. Action: Identify and stop the process that's listening on port 9090 or configure this application to listen on another p..
push(E item) 해당 item을 Stack의 top에 삽입 Vector의 addElement(item)과 동일 pop() Stack의 top에 있는 item을 삭제하고 해당 item을 반환 peek() Stack의 top에 있는 item을 삭제하지않고 해당 item을 반환 empty() Stack이 비어있으면 true를 반환 그렇지않으면 false를 반환 search(Object o) 해당 Object의 위치를 반환
자바8 HashMap 보다 간결하고 효과적으로 작성하기 자바8부터 HashMap에 여러 메서드들이 추가되었고 이런 메서드를 사용해서 HashMap을 조금 더 간결하면서 효율적으로 사용하는 방법에 대해서 알아보겠습니다. putIfAbsent() computeIfAbsent() compute() computeIfPresent() merge() getOrDefault() 작성된 코드는 java8-hashmap을 참고해주세요. 1. putIfAbsent() vs. computeIfAbsent() 2가지 메서드의 공통점은 key의 존재 여부에 따라서 새로운 key와 value 값을 추가하는 메서드입니다. putIfAbsent putIfAbsent는 2개의 인자를 받습니다. default V putIfAbsent(..
스프링 부트 애플리케이션 구동 시점에 특정 코드 실행 시키기기 ex) selenium package com.doo.selenium.runner; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; @Component public class CrawlerRunner implements CommandLineRunner { @Override public void run(String... args) throws Exception { System.out.println("1111"); } }
https://aragost.com/blog/java/picocli-introduction/ Picocli introduction This is an introduction to creating user-friendly command-line interfaces to Java applications with the picocli framework. aragost.com maven pom.xml info.picocli picocli 4.5.1 gradle gradle.build // https://mvnrepository.com/artifact/info.picocli/picocli-spring-boot-starter implementation group: 'info.picocli', name: 'picoc..
HTTP 통신으로 API 호출하기 build.gradle plugins { id 'org.springframework.boot' version '2.6.2' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } group = 'com.ldh' version = '0.0.1-SNAPSHOT' sourceCompatibility = '11' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-bo..
package com.etoos.datalake.utils; import com.google.gson.Gson; import org.apache.tomcat.util.json.JSONParser; import org.apache.tomcat.util.json.ParseException; import org.json.simple.JSONObject; import java.io.*; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import java.net.URLEncoder; import java.util.HashMap; public class HttpUtils { private static Str..
proxy ip 와 port 가 필요해서 만들어 봄 ip:port 의 array 200개 json 파일로 다운로드 https://geonode.com/free-proxy-list/ 🤖Free Proxy List Includes unlimited access to every feature we offer. Cancel at any time! geonode.com package com.etoos.imagesearch.service; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException;..
https://ldh-6019.tistory.com/147 [selenium] Selenium 설치 동적으로 생성되는 웹페이지 (mathpix 사이트) 크롤링을 해야 하는 이슈가 있어서 selenium 으로 크롤링 크롬 드라이버 설치 크롬 버전확인 http://chromedriver.chromium.org/downloads 버전에 맞는 드라이버를.. ldh-6019.tistory.com 설치했으면 긁어보자 사이트 접속 -> 로그인 -> 리스트페이지 이동 -> 크롤링 package com.etoos.imagesearch.service; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium..