
Trouble Shooting history When I create spring-boot with Kotlin, IntelliJ can't reconize Kotlin class. As a result, I added the standard library to dependency management. implementation("org.jetbrains.kotlin:kotlin-stdlib")Kotlin-stdlib has extended versions of the standard library that add support for some of the features of JDK 7 and JDK 8. Checking https://kotlinlang.org/docs/reference/usi..
Trouble Shooting history When I run gradle, I got below message. $ Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.So, first I put --warning-mode=all to gradle command like below. $ ./gradlew clean build --warning-mode=allAnd I find DefaultSourceDirectorySet class's constructor has been deprecated (below detail message) Configure project : The Defau..
Java를 포함한 많은 프로그래밍 언어에서 가장 대표적인 오류중 하나는 참조값이 없는 멤버에 액세스하면 널 참조 예외가 발생한다는 것입니다. Java에서 이것은 NullPointerException 또는 NPE와 동일합니다. 이 Null을 처음 도입한 Tony Hoare 가 다음과 같이 말했다고 합니다. 'I call it my billion-dollar mistake.' 코틀린에서는 기본적으로 변수를 정의할때 Null을 허용하지 않도록 개발되었고, null을 허용하더라도 컴파일할때 null 참조할 가능성을 다 체크해주어 안전하게 프로그램을 짤 수 있는 장점이 있습니다.(제 개인적으로 코틀린의 가장 큰 장점입니다.) Null을 허용하지 않는 변수 vs Null을 허용하는 변수 fun tes..