본문 바로가기

반응형

Kotlin

(4)
[Kotlin] 스포카에서 Kotlin으로 JPA Entity를 정의하는 방법 https://spoqa.github.io/2022/08/16/kotlin-jpa-entity.html 스포카에서 Kotlin으로 JPA Entity를 정의하는 방법 도도카트 서비스를 개발할 때 JPA를 사용하면서 좀더 Entity를 잘 정의하는 방법에 대한 고민거리를 소개합니다. spoqa.github.io
IntelliJ 에서 Kotlin 프로젝트 실행시 오류 모음 1. 찾아보면 IntelliJ에서만 나타난다고 한다.. Error running 'Application': Command line is too long. Shorten command line for Application or also for Spring Boot default configuration. 더보기 1-1. 위 빨간색 에러에서 파란색 부분을 눌러서 진입한다. 1-2. 저걸 놓쳤다면 실행시키면 생기는 프로젝트 Run 되고 있는거 확인 할 수 있는 곳?(메뉴에서 들어가는건 찾지 못했다.) 에서 Edit Configurations 를 눌러서 진입한다. 2. run할 프로젝트를 선택 후 Shorten command line 을 classpath file 로 선택해준다. apply 그럼 잘 실행된다. ..
StackOverflowError (Kotlin) StackOverflowError가 생겼을 경우 다양한 이유로 에러가 난다. 다양한 해법을 여기 모아 본다. 해결방안 1 (data class인 경우 case ) https://stackoverflow.com/questions/59558988/hibernate-enver-findrevisions-hashcode-stackoverflowerror /* StackOverflowError Model */ data class TestOneClass ( ... @OneToMany testManyClass : TestManyClass ) data class TestManyClass ( ... @ManyToOne testOneClass : TestOneClass ) /* Solution * data class 를 보..
Kotlin 데이터 타입 확인 방법 데이터.javaClass 데이터.javaClass.name println("${true.javaClass}") println("${true.javaClass.name}") ----------------------------------- boolean boolean

반응형