분류 전체보기

    [java] cannot access class com.sun.crypto.provider.SunJCE

    문제자바11 자바17 버전업을 진행하니 사용하고 있던 나이스아이디 모듈에서 SunJCE 모듈에 접근할 수 없다는 다음과 같은 에러가 발생했다.cannot access class com.sun.crypto.provider.SunJCE (in module java.base) because module java.base does not export com.sun.crypto.provider to unnamed module @0x4562e04djava.lang.IllegalAccessError: class NiceID.Check.CPClient (in unnamed module @0x4562e04d) cannot access class com.sun.crypto.provider.SunJCE (in module ..

    생성자보다 정적 팩터리 메서드를 고려해보자

    최근 NEXTSTEP 에서 주관하는 TDD, 클린코드 with Kotlin 5기 과정을 들으면서 어떻게 인스 턴스를 생성할지의 대한 고민을 많이 했다. 리뷰어들 마다의 생각도 다르고 각각의 상황도 달라 최대한 다양한 방법을 사용해보려고 노력했던 것 같다 😊 생성자 대신 팩토리 함수를 사용하라 생성자의 주된 임무는 제공된 인자를 사용해서 캡슐화된 프로퍼티를 초기화하는 것이다. 메서드의 수가 많을 수록 단일 책임 원칙 (SRP) 을 위반하지만 생성자의 수가 많아질 수록 클라이언트가 클래스를 더 유연하게 사용할 수 있다. 인스턴스를 만드는 방법중에는 팩토리 함수를 사용하는 방법도 존재한다. 이펙티브 코틀린, 이펙티브 자바에서는 생성자 대신 팩토리 함수를 사용하라 라고 말하고 있다. 관련해서 책에서 말하고 있는..

    [strapi] 🚀 강력한 headless 프레임워크 strapi 사용해보기 [3/3]

    https://bin-repository.tistory.com/157 [nodejs/strapi] 🚀 엔티티를 생성해보자 - 2 🚗 이전 포스팅 가기 https://bin-repository.tistory.com/156 [nodejs/strapi] 🚀 strapi 설치 및 mysql 연동하기 - 1 https://strapi.io/documentation/developer-docs/latest/getting-started/quick-start.html.. bin-repository.tistory.com 전 포스팅에서 엔티티를 생성해 보았는데 정말 코드를 단 한자도 치지않고 테이블을 생성하고 어드민 패널에 연동까지 해주었다. 지금부터는 잘 닦여진 도로를 달리기만 하면 된다. 🚗 #1. strapi docu..

    [nodejs/strapi] 🚀 강력한 headless 프레임워크 strapi 사용해보기 [2/3]

    🚗 이전 포스팅 가기 https://bin-repository.tistory.com/156 [nodejs/strapi] 🚀 strapi 설치 및 mysql 연동하기 - 1 https://strapi.io/documentation/developer-docs/latest/getting-started/quick-start.html#_1-install-strapi-and-create-a-new-project Quick Start Guide - Strapi Developer Documentation Get ready to get.. bin-repository.tistory.com #1. admin 계정을 만들어보자 최초 실행을 하게되면 아래와 같은 어드민 패널이 뜬다. 어드민 계정을 새로 만들고 LET'S STA..

    [nodejs/strapi] 🚀 강력한 headless 프레임워크 strapi 사용해보기 [1/3]

    https://strapi.io/documentation/developer-docs/latest/getting-started/quick-start.html#_1-install-strapi-and-create-a-new-project Quick Start Guide - Strapi Developer Documentation Get ready to get Strapi, your favorite open-source headless cms up and running in less than 3 minutes. strapi.io 강력한 headerless CMS 인 strapi 를 사용해보자! 서버에 대한 지식이 전무한 프론트엔드 개발자라면 혼자서 토이프로젝트를 하고자 할 때 api, db 의 대한 지식이 없어 ..

    [docker] 간단한 명령어 정리

    - 컨테이너 생성 (-i -t 옵션은 컨테이너와 상호(interactive) 입출력을 가능하게 해준다. 옵션에 대해서는 한번에 따로 설명하겠음.) 방법 1) docker run -i -t ubuntu:14.04 방법 2) docker pull centos:7 docker create -i -t --name mycentos centos:7 docker start mycentos docker attach mycentos * run 명령어는 pull, create, start 명령어를 일괄적으로 실행한 후 attach 가 가능한 컨테이너라면 컨테이너 내부로 들어간다. 그러나 create 명령어는 도커이미지를 pull 한 뒤에 컨테이너를 생성만 할 뿐 start, attach 를 실행하지는 않는다. 보통은 컨테..