Seemingly Online
close
프로필 배경
프로필 로고

Seemingly Online

  • 카테고리 (567)
    • Language (250)
      • 알고리즘 (100)
      • Java (144)
      • python (2)
      • Kotlin (4)
    • WEB (139)
      • Spring (23)
      • Spring Security (3)
      • Next.js (3)
      • TypeScript (3)
      • JavaScript (45)
      • jQuery (7)
      • CSS (25)
      • XML (3)
      • Maven (1)
      • Gradle (1)
      • JSP (1)
      • Thymeleaf (10)
      • HTML (11)
      • MyBatis (1)
      • JPA (2)
    • App (44)
      • Flutter (33)
      • Dart (4)
      • Android (2)
      • IOS (3)
      • Firebase (2)
    • Git (6)
      • GitHub (6)
    • AWS (15)
      • SCT (2)
      • Amazon Aurora (1)
      • S3 (2)
      • EventBridge (1)
      • EC2 (7)
      • EFS (1)
    • DataBase (43)
      • MySQL (19)
      • Oracle SQL (19)
      • Postgre-SQL (5)
    • OS (33)
      • Linux (27)
      • Windows (1)
      • Mac (5)
    • Tool (15)
      • DocKer (6)
      • Intellij (7)
      • VScode (2)
    • IT (17)
      • Developer-etc (13)
      • 개발상식 (4)
    • CodePen (2)
      • 캐러셀 (2)
  • 홈
  • 방명록
[Java] DTO to Json 시 null값 제외시키는 방법

[Java] DTO to Json 시 null값 제외시키는 방법

2023-05-08 1. 방법 라이브러리 정보를 추가한다. /* 메이븐 */ com.fasterxml.jackson.core jackson-databind 2.12.3 /* 그레이들 */ dependencies { implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' } @JsonInclude 어노테이션을 import 합니다. import com.fasterxml.jackson.annotation.JsonInclude; @JsonInclude 어노테이션을 DTO 클래스에 추가합니다. @JsonInclude(JsonInclude.Include.NON_NULL) public class MyDTO { private String name; pr..

  • format_list_bulleted Language/Java
  • · 2023. 5. 8.
  • textsms
[Java] ConcurrentModificationException 예외 처리 및 원인

[Java] ConcurrentModificationException 예외 처리 및 원인

2023-04-28 1. 원인 This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible. 이 예외는 객체의 동시 수정이 허용되지 않을 때 객체의 동시 수정을 탐지한 방법에 의해 발생할 수 있습니다. For example, it is not generally permissible for one thread to modify a Collection while another thread is iterating over it. In general, the results of the iteration are undefined ..

  • format_list_bulleted Language/Java
  • · 2023. 4. 28.
  • textsms
[Java] 자바 구간합 구하는 방법 알아보기

[Java] 자바 구간합 구하는 방법 알아보기

2023-03-24 1. 방법 우선 주어진 배열과 동일한 크기의 배열을 생성해 준다. 해당 주어진 배열을 1회 순회하며, 새로운 배열(sumArr)에 sumArr [i-1] + arr [i] 공식으로 대입해 주면 된다. 이후에 주어진 구간합을 구할때는 구간 끝 - 구간시작-1 공식을 이용하면 기존 배열을 다시 반복 순회하지 않아도 답을 도출할 수 있다. static int [] sumArr; @Test public void test(){ int [] arr = new int [] {4,5,13,43,22,1,5,7,8}; sumArr = new int [arr.length]; sumArr[0] = arr[0];//구간합 첫번째 인자 셋팅 //구간합 구하기 for(int i = 1; i < arr.leng..

  • format_list_bulleted Language/Java
  • · 2023. 3. 24.
  • textsms
[Java] 숫자형 배열에서 다음 큰 수 찾는 방법

[Java] 숫자형 배열에서 다음 큰 수 찾는 방법

2023-03-23 1. 방법 스택을 사용하면 해결을 할 수 있다. 주어진 숫자형 배열의 인덱스를 스택에 저장하고 각 인덱스 마다 비교하여 다음 큰 수를 찾을 수 있다. public int[] test(int[] numbers) { Stack stack = new Stack(); int[] answer = new int[numbers.length]; for (int i = 0; i 스택최상단인덱..

  • format_list_bulleted Language/Java
  • · 2023. 3. 23.
  • textsms
[Java] RGB 코드를 Hex 코드로 바꾸는 방법

[Java] RGB 코드를 Hex 코드로 바꾸는 방법

2023-03-17 1. 방법 방법은 각각의 rgb 값을 인터형으로 받아 문자열 format을 이용해 변경해 주면 된다. public static String rgbToHex(int r, int g, int b) { if(r 255) r = 255; if(g 255) g = 255; if(b 255) b = 255; String hex = String.format("%02X%02X%02X", r, g, b).toUpperCase(); return hex; } 메인 이미지 출처 : 사진: Unsplash의Mona

  • format_list_bulleted Language/Java
  • · 2023. 3. 17.
  • textsms
[Java] String 형태의 Xml의 태그 값 추출하는 방법

[Java] String 형태의 Xml의 태그 값 추출하는 방법

2023-03-10 1. 방법 우선 아래의 라이브러리들의 import가 필요하다. import org.w3c.dom.Document; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import java.io.IOException; import java.io.StringReader; 이후 처리해야 할 xml 형태의 String 변수를 해당 라이브러리들을 사용하여 원하는 값을 추출할..

  • format_list_bulleted Language/Java
  • · 2023. 3. 10.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ···
  • 24
  • navigate_next
공지사항
전체 카테고리
  • 카테고리 (567)
    • Language (250)
      • 알고리즘 (100)
      • Java (144)
      • python (2)
      • Kotlin (4)
    • WEB (139)
      • Spring (23)
      • Spring Security (3)
      • Next.js (3)
      • TypeScript (3)
      • JavaScript (45)
      • jQuery (7)
      • CSS (25)
      • XML (3)
      • Maven (1)
      • Gradle (1)
      • JSP (1)
      • Thymeleaf (10)
      • HTML (11)
      • MyBatis (1)
      • JPA (2)
    • App (44)
      • Flutter (33)
      • Dart (4)
      • Android (2)
      • IOS (3)
      • Firebase (2)
    • Git (6)
      • GitHub (6)
    • AWS (15)
      • SCT (2)
      • Amazon Aurora (1)
      • S3 (2)
      • EventBridge (1)
      • EC2 (7)
      • EFS (1)
    • DataBase (43)
      • MySQL (19)
      • Oracle SQL (19)
      • Postgre-SQL (5)
    • OS (33)
      • Linux (27)
      • Windows (1)
      • Mac (5)
    • Tool (15)
      • DocKer (6)
      • Intellij (7)
      • VScode (2)
    • IT (17)
      • Developer-etc (13)
      • 개발상식 (4)
    • CodePen (2)
      • 캐러셀 (2)
최근 글
인기 글
최근 댓글
태그
  • #자바
  • #백준알고리즘
  • #Java
  • #자바공부
  • #백준
  • #자바기초
  • #Java8
  • #backjoon
  • #자바알고리즘
  • #BOJ
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바