FAQ

  • How to get commitizen and cz-conventional-changelog work for non-node-git-repo?

    You can get commitizen and cz-conventional-changelog work for non-node-git-repo with global installation. Here are the steps that I have followed.

    yarn global add commitizen cz-conventional-changelog
    echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc; # will create .czrc
    cd non-node-git-repo
    touch foo
    git cz -a
    • Make sure Spring Boot plugin in enabled in menu File | Settings | Plugins | Spring Boot

    • Enable annotation processing via menu File | Settings | Build, Execution, Deployment | Compiler | Annotation Processors | Enable annotation processing

    • Since Kapt is not yet integrated in IDEA, you need to run manually the command gradle kaptKotlin to generate the metadata

    • @Validated is for "validation groups", This can be used in multi-step forms

    • @Valid is for one-step validation

  • How to use lombok with kotlin-spring-boot projects?

    • Add alias(libs.plugins.gradle.lombok) and alias(libs.plugins.kotlin.lombok) plugins to subproject's build.gradle.kts.

    • No need to add compileOnly(libs.lombok) and annotationProcessor(libs.lombok) dependencies.

    • You can only add lombok annotations to java classes.

    • Kotlin compiler ignores Lombok annotations if you use them in Kotlin code.

    • We are using slf4j 2.0.0's fluent API for logging.

    • declare logger for each class private val logger = KotlinLogging.logger {}

  • Spring WebFlux and Exception handing

Last updated