skip to Main Content

Postgresql – Cascade Delete in JPA Failing

I am using Java, Spring and JPA and cannot get cascade deletion to work. I have a class Tenant that looks like this @Entity @Validated @Data @Builder @NoArgsConstructor @AllArgsConstructor @TenantConstraints public class Tenant { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator =…

VIEW QUESTION

Azure – Spring Boot OAuth2 invalid_user_info_response

Im building a webMVC app with Azure as Identity Provider and Im getting the following error: [invalid_user_info_response] An error occurred while attempting to retrieve the UserInfo Resource: I/O error on GET request for "https://graph.microsoft.com/oidc/userinfo": graph.microsoft.com [nio-8080-exec-3] o.s.web.client.RestTemplate : HTTP GET…

VIEW QUESTION

Unable to load config data from 'aws-parameterstore:' when using Spring Boot with AWS Parameter store

Spring Boot newbie here. I am trying to read credentials from AWS Parameter Store. To do that, I have added the following dependencies to pom.xml: <dependency> <groupId>io.awspring.cloud</groupId> <artifactId>spring-cloud-starter-aws</artifactId> <version>2.4.2</version> </dependency> <dependency> <groupId>io.awspring.cloud</groupId> <artifactId>spring-cloud-aws-parameter-store-config</artifactId> <version>2.4.2</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency>…

VIEW QUESTION

Mongodb – @DynamicPropertySource not being invoked (Kotlin, Spring Boot and TestContainers)

I'm trying to define a @TestConfiguration class that is executed once before all integration tests to run a MongoDB TestContainer in Kotlin in a Spring Boot project. Here is the code: import org.springframework.boot.test.context.TestConfiguration import org.springframework.test.context.DynamicPropertyRegistry import org.springframework.test.context.DynamicPropertySource import org.testcontainers.containers.MongoDBContainer import…

VIEW QUESTION
Back To Top
Search