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.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
Ref stackoverflow
- How to use lombok with kotlin-spring-boot projects?
Add
alias(libs.plugins.gradle.lombok)
andalias(libs.plugins.kotlin.lombok)
plugins to subproject'sbuild.gradle.kts
.No need to add
compileOnly(libs.lombok)
andannotationProcessor(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
Sample Code for above Blog
Last updated