hello jiniworld

hello jiniworld

  • hello jiniworld (137)
    • Spring (51)
      • Basic (14)
      • Spring Data JPA Tutorial (14)
      • Spring Boot Tutorial (17)
      • Jersey (6)
    • Front-end (3)
      • Vanilla JS (2)
      • Basic (1)
    • Python (5)
      • Flask Tutorial (1)
      • Basic (3)
      • Effective Python (1)
    • Dev (15)
      • Client (2)
      • Java (8)
      • Effective Java (5)
    • DB (17)
      • MySQL (8)
      • MariaDB (8)
      • Oracle (1)
    • Linux (10)
      • Command-line (9)
      • Oracle Linux 8 (1)
    • CentOS 7 (25)
      • Basic (9)
      • Web Server (5)
      • WAS (3)
      • Jenkins (8)
    • Documents (4)
    • Etc (7)
      • Windows 10 (3)
      • trash bin (3)
06-29 09:38
  • 전체보기
  • 방명록
  • jini's GitHub
  • demo api
  • demo-old api
RSS 피드
로그인
로그아웃 글쓰기 관리

hello jiniworld

컨텐츠 검색

태그

SSL Spring Boot Tutorial Command-Line jenkins Java MariaDB centos7 SpringBoot2 JPA Spring JAX-RS springboot Jersey Spring Boot effectivejava OAS3 swagger https MySQL CI

최근글

  • [Jersey] 6. CRUD API 생성⋯
  • [Jersey] 5. ExceptionMapper⋯
  • [Jersey] 4. Response 전용 V⋯
  • [Jersey] 3. WebApplicationE⋯

댓글

  • MyBatis를 이용할 경우, SQL native 문⋯
  • 앗 그러면 하나만 더 물어보고 싶은 게⋯
  • 넵 빼고 진행해도 문제 없을거에요
  • Mybatis 사용하지 않으면 mapper랑 다⋯

공지사항

  • SSL 인증서 설정하기

아카이브

  • 2022/05
  • 2022/04
  • 2022/03
  • 2022/02
  • 2021/11
  • 2021/09
  • 2021/08
  • 2021/06
  • 2021/05
  • 2021/04
  • 2021/03
  • 2021/02

hello jiniworld(137)

  • [JDK 14] Switch 문에서 arrow operator 이용하기

    2022.05.06
  • [JDK 16] Pattern Matching for instanceof

    2022.05.06
  • [JDK 9] Immutable Collection 생성하기

    2022.05.06
  • [Java] Gson을 이용한 Json Serialization & Deserialization

    2022.04.29
  • [Command-line] free 명령어로 메모리 사용량 조회하기

    2022.04.21
  • [Spring Data JPA Tutorial] 14. Swagger v3 상세설정 및 request 유효성 검증

    2022.04.20
[JDK 14] Switch 문에서 arrow operator 이용하기

JDK 14 에서는 Switch 문에서 -> 를 이용하여 표현식을 간소화하는 것을 지원합니다. JEP 361: Switch Expressions 일반적인 switch 문에서는 아래와 같이 case문의 종료를 break로 정의해야했습니다. @Test void previous(){ List animals = Arrays.asList(Animal.CAT, Animal.CAT, Animal.LION, Animal.SNAKE, Animal.DUCK); animals.forEach(animal -> { int legs; switch (animal) { case CAT: case LION: legs = 4; break; case DUCK: System.out.println("오리는 꽥꽥"); legs = 2; bre..

2022. 5. 6. 15:44
[JDK 16] Pattern Matching for instanceof

JDK 16 부터 instanceof의 패턴 매칭을 지원합니다. 패턴 매칭은 타입을 강제로 설정해줌으로써 캐스팅을 잘못하여 발생되는 에러를 방지할 수 있습니다. JEP 394: Pattern Matching for instanceof instanceof 테스트를 하기 위해 먼저 아래와 같은 클래스를 선언했습니다. @Getter abstract static class Figure { protected String name; } @Getter static class Circle extends Figure { public Circle() { this.name = "원"; } } @Getter static class Square extends Figure { private final int line; publi..

2022. 5. 6. 14:36
[JDK 9] Immutable Collection 생성하기

Immutable Collection? JDK 9 버전 이전 moditable List 생성 예 - Arrays.asList immutableList List 생성 예 - Collections.unmodifiableList immutableList Set 생성 예 - Collections.unmodifiableSet JDK 9 버전 이후 List List.of List.copyOf Set Set.of Set.copyOf Map Map.of Map.copyOf Map.ofEntries 1. Immutable Collection? Immutable은 수정할 수 없는(=불변)을 뜻하는 말로, Immutable Collection을 다른 말로 표현하자면 읽기전용 컬랙션을 의미합니다. 어떤 데이터를 이용하고자 할..

2022. 5. 6. 11:51
[Java] Gson을 이용한 Json Serialization & Deserialization

Gson 테스트를 위한 사전 설정 html escaping 테스트 LocalDateTime 관련 객체 테스트 Gson 객체 생성하기 GsonUtils disableHtmlEscaping setFieldNamingPolicy setDateFormat serializeNulls LocalDateTime 관련 객체 serialize 테스트 코드 작성 및 에러 발생 TypeAdapter 정의하기 Gson 객체에 TypeAdapter 등록하기 결과 최종 GsonUtils 코드 1. Gson 1.1. Gson? Java 객체를 Json 문법으로 변환해주는 Java 라이브러리입니다. Json 문자를 Java 객체로 변환하는것도 제공합니다. Gson 2.9.x 버전은 Java 7 이상 버전부터 지원합니다. Java 객..

2022. 4. 29. 12:38
[Command-line] free 명령어로 메모리 사용량 조회하기

free free options 예제 -s && -c -w -t -h /proc/meminfo 1. free 1.1. free free [options] 시스템 상의 메모리 사용량을 조회하는 명령어 물리적 메모리 뿐만아니라 swap 메모리나 커널에 의해 사용된 버퍼나 캐시도 표시합니다. 모든 메모리 정보는 /proc/meminfo에 들어있으며 free 명령어는 /proc/meminfo를 파싱한 값을 모은 정보를 표현합니다. 메모리는 여러 컬럼으로 구분하여 표시되며, 각 컬럼에 대한 설명은 아래와 같습니다. total 총 메모리 MemTotal, SwapTotal used 사용중인 메모리 total - free - buffers - cache free free 메모리 MemFree, SwapFree sha..

2022. 4. 21. 11:39
[Spring Data JPA Tutorial] 14. Swagger v3 상세설정 및 request 유효성 검증

필요성 OpenAPI doc 관련 Annotation operation 그룹 설정: @Tag Schema 설정 : @Schema 상세 정보 설정 : @Operation response 설정 : @ApiResponse parameter 설정 : @Parameter 기존 api에 적용하기 @Tag 설정 @Schema 및 유효성 검증 설정 @Operation 설정 @ApiResponse 설정 @Parameter 설정 Exception 처리 보완 1. 필요성 Swagger를 이용하여 API를 자동 웹문서화 하였고, Response로 받게될 Example Value 형태까지 맞췄봤습니다. 그러나, 아직 Swagger 페이지 만으로 api 기능을 한눈에 알아보기 어렵습니다. 각 operation들에 대한 부연설명도..

2022. 4. 20. 17:46
1 2 3 4 5 ··· 23
JINIWORLD
© jiniworld. All rights reserved.

티스토리툴바