전체 글

전체 글

    AWSKRUG Women In Cloud 밋업 후기

    AWSKRUG Women In Cloud 밋업 후기

    AWSKRUG (AWS 한국사용자모임) Women In Cloud 2번째 밋업에 갔다왔다! 😎 이런 네트워킹 모임은 거의 처음 참여해본 것 같다. 첫번째 밋업은 참석하지 못했는데, 회사 팀원분이 다녀와서 추천해주셔서 이번에는 같이 다녀왔다! 일시: 2023.11.15(수) 장소: 서울 강남구 테헤란로 231 센터필드 역삼역 센터필드 건물에서 진행했는데, 올라갔더니 관계자분이 입장안내(?)도 해주시고 시설도 되게 좋아서 신기했다. (재택만해서 이런 좋은건물에 안 인숙한 사람) 도착해서 팀원분 만나고 밋업에서 제공해준 샌드위치 냠냠 먹으면서 기다렸다 🥪 일정은 1부 발표세션과 2부 네트워킹세션으로 나뉘어졌다 발표는 무신사 SRE 안다혜님이 준비해주셨고 2부 네트워킹에는 사전에 제출한 관심있는 주제에 따라 매..

    [Git] 원격저장소 재연결하기

    로컬 프로젝트에 원격저장소가 연결되어있는 상태에서, 다른 저장소에 연결을 하고싶은 경우가 있다. 이럴땐 아래 명령어로 기존 원격저장소 연결을 끊고, 새 원격저장소를 연결하면 된다. $ git remote -v # 현재 연결된 원격저장소 확인 $ rm -rf .git $ git init $ git add . $ git commit -m "first commit”

    [CSS] input focus 효과 제거

    기본적으로 input, textarea등에 focus효과가 적용되어있는 경우가 있다. outline, box-shadow를 none처리해주면 해결~ input, input:focus, textarea, textarea:focus { outline: none !important; box-shadow: none !important; }

    [Git] tag 설정하기

    버전 명시를 할 때 git tag를 많이 사용하게 되는 듯 하다. 명령어 tag 업로드 태그를 원격저장소에 업로드한다면 꼭 push를 해주어야한다~ $ git tag v1.0.0 # 태그 설정 $ git push origin v1.0.0 # 원격저장소에 업로드 tag 삭제 원격저장소에 업로드하지 않은 태그는 -d 옵션을 붙여주면 되고 원격저장소에 올라간 태그는 :를 붙여주면 된다. $ git tag -d v1.0.0 # 로컬 태그 삭제 $ git push origin :v1.0.0 # 원격저장소의 태그 삭제

    [SpringBoot][Kotlin] org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing 에러

    [SpringBoot][Kotlin] org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing 에러

    실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발 강의를 들으면 주문서비스 테스트를 작성하고, 실행했는데 에러를 만났다. 반가워~👋 에러메세지 org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : com.jpabook.jpashop.domain.Order.delivery -> com.jpabook.jpashop.domain.Delivery; nested exception is java.la..

    [JUnit5][SpringBoot][Kotlin] Exception테스트하기 (assertThrows)

    [JUnit5][SpringBoot][Kotlin] Exception테스트하기 (assertThrows)

    JUnit4 Junit4에서 exception 테스트는 @Test(expected=기대하는예외)를 통해 가능하다. (JUnit5와 비교하기 위한 예시코드이므로 정확하진 않을 수 있음) @Test(expected = NotEnoughStockException::class) fun 상품주문_재고수량초과() { val member = createMember("사용자") val book = createBook("도서명", 10000, 10, "저자명", "12345") val orderCount = 11 orderService.order(member.id!!, book.id!!, orderCount) fail("예외가 발생해야 한다."); } JUnit5 @Test에 expected를 쓸 수 없게 되어있어 다른..

    [Node.js][Typescript] node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected.

    [Node.js][Typescript] node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected.

    오랜만에 예전에 했던 Node.js + Express + Typescript 프로젝트를 실행했더니 여러 오류가 났다...!! 😵 node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected. ... node_modules 안에서 오류가 난거라 패키지문제인데, 구글링을 통해 이 이슈를 찾았다. https://github.com/DefinitelyTyped/DefinitelyTyped/issues/62300 @types/express-serve-static-core/index.d.ts Typescript build error (version 4.17.31) · Issue #62300 · Definitel..

    [Git] git clone 폴더 지정하기 (현재 위치, 폴더 이름 수정)

    [Git] git clone 폴더 지정하기 (현재 위치, 폴더 이름 수정)

    git clone을 가장 기본으로 사용하면 이렇게 쓸 수 있다. $ git clone {url} 이렇게하면 기본적으로 clone된 폴더가 repository이름과 같다. 현재 위치에 clone하기 이 방법을 몰랐을 땐 clone을 했다가 폴더안에 폴더가 생기기도하고, 일부러 상위 폴더로 이동해서 clone하기도 했었다. 방법은 아주 간단하다! $ git clone {url} . 이렇게 하면 현재 위치에 clone이 된다. 폴더 없이!! repository와 다른 이름으로 clone하기 이 방법을 몰랐을 때도 그냥 clone하고 폴더 이름을 수동으로 바꾸거나, 그냥 repository이름의 폴더로 사용했었다. $ git clone {url} {설정할 폴더이름} 이렇게하면 폴더 이름을 지정할 수 있다. 너무..

    [Spring Boot] No tests found for given includes: 에러

    [Spring Boot] No tests found for given includes: 에러

    Spring Boot로 테스트 작성 후 IntelliJ내의 테스트 실행버튼을 눌러 테스트를 시도했다. 그런데... Execution failed for task ':test'. > No tests found for given includes: [test코드 경로](filter.includeTestsMatching) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. 이렇게 떴다..!! 분명 @Test가 붙은 테스트들이 존재하는데...왜 없다고 하는 것인가? 인프런에 나와..

    [Spring Boot] Error creating bean with name 'entityManagerFactory' defined in class path resource

    [Spring Boot] Error creating bean with name 'entityManagerFactory' defined in class path resource

    Spring Boot, Kotlin, JPA, H2를 이용해서 API 테스트코드를 작성중이었다. Error creating bean with name 'entityManagerFactory' defined in class path resource Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceExcepti..