How to create a generic base REST controller with Kotlin Spring?
I’m working on a project where every endpoint should start with the prefix /query
and all the endpoints should use the GET
method.
How to create a generic base REST controller with Kotlin Spring?
I’m working on a project where every endpoint should start with the prefix /query
and all the endpoints should use the GET
method.
Spring Server Runs for the First Time
I ran the first sound project, but I went to the login screen if it’s not the default home, is there a solution?
I’ll attach a picture of the related library I installed below
enter image description hereenter image description here
How to beautifully update a JPA object using Kotlin
I come from a Java background. I’m having a bit of a dilemma, OrderDetail needs an Order before saving it and I need Order needs OrderDetail as well. I thought the best approach was first creating the Order and with this, I will get the Order ID which I pass to the OrderDetail objects that are being created. Now the issue is that orderDetails is a val and cannot be reassigned, so order.orderDetails = orderDetails
does not work. A fix would be changing orderDetails to a var in the JPA Object class, but I feel this defeats the purpose of removing as much mutability as possible.