Java(17)
-
깨진 Hex Code decode 하기
깨진 문구Test \\xED\\x99\\x94\\xEB\\xA9\\xB4 \\xED\\x99\\x94\\xEB\\xA9\\xB4 !!decodeString input = "Test \\xED\\x99\\x94\\xEB\\xA9\\xB4 \\xED\\x99\\x94\\xEB\\xA9\\xB4 !!";// Sanitize the input to keep only valid hexadecimal charactersString decoded = decodeHex2String(input);System.out.println("Decoded String: " + decoded);public static String decodeHex2String(String input) { // A list to collect ..
2024.11.17 -
Http 통신하기 Apache HttpClient 사용
pom.xml org.apache.httpcomponents.client5 httpclient5 5.1GET 방식import org.apache.hc.client5.http.classic.methods.HttpGet;import org.apache.hc.client5.http.classic.methods.CloseableHttpResponse;import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;import org.apache.hc.client5.http.impl.classic.HttpClients;import org.apache.hc.core5.http.io.entity.EntityUtils;public class HttpClientEx..
2024.10.19 -
nslookup 구현
참조https://a-half-human-half-developer.tistory.com/108 [Java] nslookup자바로 nslookup을 구현할 수 있다. public void nslookup(String domain) { InetAddress[] inetaddr = null; try { inetaddr = InetAddress.getAllByName(domain); } catch(Exception e) { e.printStackTrace(); } for (InetAddress inetAddress : inetaddr) { Sysblog.develop-gyuri.cloudhttps://hstory0208.tistory.com/entry/Java%EC%9E%90%EB%B0%94-List%EC%9..
2024.08.23 -
java 에러
no main manifest attribute, in xxx.jar java -jar xxx.jar 수행시, main 파일을 못 찾아서 문제 발생 https://dongjuppp.tistory.com/87 no main manifest attribute in 에러 no main manifest attribute in 에러는 spring 애플리케이션을 빌드한 결과물로 나온 jar파일에서 처음 호출할 Main 메소드를 찾지 못했다는 에러다. 주로 jar파일을 "java -jar app.jar" 명령어로 실행을 시킬.. dongjuppp.tistory.com org.apache.maven.plugins maven-jar-plugin 3.2.0 true xxx.xxx.xxx Error: Unable to in..
2021.12.26 -
InfluxDB 연동
2.0 이상 https://github.com/influxdata/influxdb-client-java GitHub - influxdata/influxdb-client-java: InfluxDB 2 JVM Based Clients InfluxDB 2 JVM Based Clients. Contribute to influxdata/influxdb-client-java development by creating an account on GitHub. github.com # pom.xml 추가 com.influxdb influxdb-client-java 4.0.0 org.influxdb.influxdbexception: {"code":"unauthorized","message":"unauthorized"} 2...
2021.12.26