All Questions
1,915
questions
0
votes
0
answers
15
views
Springboot + MCerror: No auto configuration classes found in META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
I’m trying to run Spring Boot inside a Minecraft plugin. When I use the main function in IntelliJ to get and print an entity, it works fine. However, when I start the application from the JAR file on ...
0
votes
0
answers
17
views
open api generator kotlin gradle dsl - cant generate specific api endpoint
i am using open api generator kotlin dsl build.kts gradle task version 7.0.1 to generate spring 2.7.18 web clients
expected: generate 1x MeterApisAPi and 1x model
openApiGenerate {
inputSpec.set(&...
2
votes
1
answer
58
views
Understanding execution order with .then(Mono{})
I'm trying to understand the behaviour of .then(Mono(x)) in spring webflux.
I have the following code:
fun storeIfValid(x): Mono<Long> =
doSomeChecksThatMightFail().then(repo.save(x))
...
1
vote
1
answer
29
views
RequestBody object with single property spring-boot
Language: Kotlin, Spring version: 3.2.3
I have controller that gives an object with single property:
@RestController
@RequestMapping("")
class Test {
@PostMapping("khar")
...
0
votes
1
answer
31
views
Why is openid-configuration returning 404 (Spring Authorization Server)
I have following SecurityConfig:
package auth
import classLogger
import com.nimbusds.jose.jwk.JWKSet
import com.nimbusds.jose.jwk.RSAKey
import com.nimbusds.jose.jwk.source.ImmutableJWKSet
import com....
-1
votes
0
answers
13
views
Debug kotlin in spring boot maven java
https://github.com/fwcd/vscode-kotlin/issues/154
Can i debug kotlin (vscode) in spring boot maven java (i only use kotlin build controller)
can debug kotlin when run app java , i want when run spring ...
0
votes
2
answers
57
views
How do I create an integration test in Spring Boot for a job application?
I will provide an example application to illustrate what I need. I have a job application that is scheduled to run daily in Kubernetes. This application serves as the entry point for the job.
@...
0
votes
2
answers
74
views
Spring Boot won't pickup application.properties in custom class loader environment
I am currently working on a project which includes running Spring Boot within a Minecraft Spigot / Paper plugin.
My project is setup to run a custom Framework that I built on plugin initialization:
// ...
0
votes
0
answers
73
views
Migrating to spring 3.3.0+ version, causes issues with wiremock
im trying to update from spring-boot 3.1.9 to 3.3.1. When i update the version, tests using wiremock start failing.
I read about the standalone version,
and have updated my gradle script accordingly ...
2
votes
1
answer
43
views
Use a different maven repository per build in gradle
I have a spring/gradle/kotlin backend Application, that I have to build in 2 networks. One has internet, the other does not, but it has a private maven repository.
Example part of build.gradle.kts:
......
1
vote
1
answer
38
views
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 ...
1
vote
0
answers
18
views
If I use Spring Data JPA without @Transactional, will the entity not be in a Managed state in the persistence context?
I used Spring Data JPA's JpaRepository(3.2.2), and after checking the implementation, I found out that it uses jakarta.persistence.EntityManager to perform find operations. As far as I know, when ...
0
votes
0
answers
24
views
Saving and refreshing a record using a nested entity graph in Spring Boot
In my domain model, a membership belongs to a restaurant (eager), and a restaurant has many locations (lazy).
// Membership.kt
@ManyToOne
@JoinColumn(name = "restaurantId", ...
-1
votes
1
answer
57
views
How to map array database type to kotlin
I have this entity
@Entity
@Table(name = "foo")
class Foo(
@Column(name = "bar_ids", columnDefinition = "uuid[]")
val barIds: Array<UUID>,
) {
@Id
@...
4
votes
0
answers
120
views
Significantly slower compilation time after migration to Kotlin 2.0.0 from 1.9.23
I have a Spring Boot mutliproject that I just updated to Kotlin version 2.0.0 from the earlier version 1.9.23. I use IntelliJ as my IDE and ran the code migration scan tool and no warnings or errors ...