프로그래밍 296

[Vue] TS2307: Cannot find module '@/App.vue' error

원인 TS2307: Cannot find module '@/App.vue' error 위와 같이 계속 TS 파일에서 @로 시작하는 절대 경로를 못찾아서 이상했다. 빌드를 하면, 실제 경로를 잘 찾는다. 해결방법 vue3의 경우, vite-env.d.ts 파일에 vue 파일에 대한 타입을 추가 해주어야 한다고 한다. ref. https://lobotuerto.com/notes/build-a-vue3-typescript-dev-environment-with-vite ref. https://stackoverflow.com/questions/42002394/importing-vue-components-in-typescript-file Build a Vue 3 + TypeScript dev environment ..

prettier-eslint, eslint 설정

모든 방식은 제가 문서를 보고 적용한 방식인데, 잘못 된 정보가 포함 되어 있을 수 있습니다. 모듈 설치 pnpm i -D husky eslint-plugin-vue lint-staged prettier-eslint prettier-eslint-cli eslint-config-prettier pnpm 기준이지만, npm을 쓴다면 npm, yarn이라면 yarn으로 바꿔서 설치만 하면 된다. prettier-eslint 방식으로 설정 하는 이유는 기존 plugin 방식보다 속도가 더 빠르고, 가이드에서도 더 권장하는 방법이라 그렇다. https://prettier.io/docs/en/integrating-with-linters.html 모듈 설명 husky git hook을 쉽게 실행 시켜 주는 역할을 한..

Kotest 기본만 알아보자

kotest link: https://kotest.io Kotest is a flexible and elegant multi-platform test framework for Kotlin with extensive assertions and integrated property testing. Testing Styles junit 스타일 지원, JS에서 많이 사용하는 jest와 유사한 테스트 스타일 지원, goovy로 작성하는 spock과도 유사한 형태의 behavior test 스타일도 각기 모두 지원한다. 테스트 스타일 종류 Fun Spec(Scala) Describe Spec(JavaScript framework) Should Spec(kotest) String Spec(kotest) Behavior..

reactor-kafka version up 이슈 (No subscriptions have been created)

이관 받은 코드에서 reactor-kafka 버전을 1.2.5.RELEASE 버전을 쓰고 있었는데, 버전 업그레이드를 하면서 겪은 이슈는 다음과 같았다.2023-04-10 18:17:36.601 ERROR 1 --- [ard.processor-1] r.k.r.internals.ConsumerEventLoop : Unexpected exception java.lang.IllegalStateException: No subscriptions have been created at reactor.kafka.receiver.ReceiverOptions.subscriber(ReceiverOptions.java:515) at reactor.kafka.receiver.internals.ConsumerEventLoop$S..

npm을 pnpm 으로 바꾸면서 발생한 문제점 (--no-install Not Found)

ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/--no-install: Not Found - 404 This error happened while installing a direct dependency of /Users/seungdols/Library/pnpm/store/v3/tmp/dlx-51986 --no-install is not in the npm registry, or you have no permission to fetch it. No authorization header was set for the request. npm에서 pnpm으로 교체하던 중에 git commit이 안되는 이슈가 있었는데, 좀 생소했다. pnpm@6 버전을 쓰면 이슈가 없었고..

[IDEA] Run Configuration 설정

ref. https://vividcode.io/generate-custom-intellij-idea-run-configuration-programmatically/ local 환경에서 어플리케이션의 실행 환경 설정을 지정하여, 해당 설정으로 고정 시킬 수 있다. (2020.1 부터 사용) .run 디렉토리 안에 Application 이름과 같은 이름으로 된 xml 설정을 idea가 자동적으로 인식 파일 이름은 [application name].run.xml 형식으로 지정 해야 한다. Options Description VM_PARAMETERS JVM options PROGRAM_PARAMETERS Program parameters MAIN_CLASS_NAME Main class WORKING_DIRECT..

Jupyter Install (macos)

기본적으로 python이 설치 되어 있다고 가정한다. https://jupyter.org/install Project Jupyter The Jupyter Notebook is a web-based interactive computing platform. The notebook combines live code, equations, narrative text, visualizations, interactive dashboards and other media. jupyter.org pip install --upgrade pip pip install notebook jupyter notebook // running 특정 노트북 파일을 열고 싶을때, jupyter notebook notebook.ipynb po..

프록시와 연관관계

https://www.inflearn.com/course/ORM-JPA-Basic/dashboard Proxy Proxy 기초 em.find() vs em.getReference() em.find(): 데이터베이스를 통해서 실제 엔티티 객제 조회 em.getReference(): 데이터베이스 조회를 미루는 가짜 엔티티 객체 조회 조회 시점에는 DB로 쿼리가 전송이 안되지만, 실제 사용하는 곳에서 쿼리가 전송 됨. 특징 실제 클래스를 상속 받아서 만들어짐 실제 클래스와 겉모양이 같다. 사용하는 입장에서는 진짜 객체인지? 프록시 객체인지 구분하지 않고 사용하면 된다. (이론상) 프록시 객체는 실제 객체의 참조를 보관 프록시 객체를 호출하면 프록시 객체는 실제 객체의 메소드 호출 프록시 객체는 처음 사용할때,..

프로그래밍/JPA 2022.10.23

고급 매핑 전략

https://www.inflearn.com/course/ORM-JPA-Basic/dashboard 상속 관계 매핑 슈퍼타입, 서브타입 관계라는 모델링 기법이 객체 상속과 유사 상속 관계 매핑 객체의 상속과 구조와 DB의 슈퍼타입 서브타입 관계를 매핑 각각 테이블로 변환 -> 조인 전략 통합 테이블로 변환 -> 단일 테이블 전략 서브 타입 테이블로 변환 -> 구현 클래스마다 테이블 전략주요 어노테이션 @Inheritance(strategy = InheritanceType.XXX) JOINED SINGLE_TABLE TABLE_PER_CLASS @DiscriminatorColumn(name = "DTYPE") 운영상 DTYPE은 있는게 좋다. @DiscriminatorValue("XXX") 조인 전략 장점..

프로그래밍/JPA 2022.10.23
반응형