Category "spring-boot"

Oracle wallet -(Exception)Invalid number format for port number, while trying to establish JDBC connection

I am trying to make JDBC database call(Using Oracle wallet) using spring boot application but getting below exception. org.springframework.jdbc.CannotGetJdbcCon

Unable to connect IBMi machine with Spring Data & JPA

Trying connect IBMi machine by using Spring Data & JPA, but it's generating the error: org.springframework.beans.factory.BeanCreationException: Error creati

Oracle wallet -(Exception)Invalid number format for port number, while trying to establish JDBC connection

I am trying to make JDBC database call(Using Oracle wallet) using spring boot application but getting below exception. org.springframework.jdbc.CannotGetJdbcCon

Best practice for combining android client, spring-boot backend and Oauth2 social login

I am attempting to create a project that combines an Android client with a spring-boot microservices architecture in the backend. The client application will co

The default type resolver could not find a suitable Java type for GraphQL type `ArrayList. Provide a @DgsTypeResolver.`

I have a java - Spring Boot project using graphql and DGS from netflix. I have the following query: type Query { ticketingHistory(ticketId: String): TicketingHi

make repository mutually exclusive in springboot

Is there a way to make a repository mutually exclusive i.e two concurrent values not update the same document in Springboot. My code structure is. //func(versi

How to do a get request to SpringBoot java with an Array<Array<string>>?

I am doing a get request in angular with typescript and here it is: this.http.get("http://localhost:8080/data-management/data-users/getAllGeneralInfoCV/"+this.l

liquibase.exception.DatabaseException: ORA-01950: no privileges on tablespace 'VMSS_TBS'

Initially I was getting this exception while starting my service An attempt was made to call a method that does not exist. The attempt was made from the followi

Distribute cache between Pods in Kubernetes with Hazelcast in Spring boot application

I have a Spring boot application with Hibernate L2 cache enabled. I integrated Hazelcast as cache provider for Hibernate. My application runs on Kubernetes and

Why my CORS filters don't work? Spring Boot

My backend setup has big issues with CORS on REST controllers. I tried to apply all sorts of filters, none of them work. This is my current CORS filter implemen

How to disable auto login redirect in Spring Boot Keycloak Adapter

I am writing an API in Spring Boot that I want to secure using Keycloak. After doing some setting up, I managed to get the keycloak adapter to work. While I was

joinColumns in Hibernate for standard relations?

In the following example, there are 3 entities which have relations e.g. @ManyToMany, @OneToMany and @ManyToOne: Student: @Entity @Data public class Student {

Citrus httpServer & httpClient tests

I'm using Citrus for perform integration tests based on http requests. The test should perform steps as follows: Sending a POST http request to external service

org.graalvm.polyglot.PolyglotException: ReferenceError: document is not defined

I am using Spring boot 2.4.4, JDK 1.8, and created ScriptEngine as shown. Page loaded perfectly for the first time but the second time it throws the exception

Spring Api-Gateway: (M1) java.lang.UnsatisfiedLinkError: no netty_resolver_dns_native_macos_aarch_64

Just to clearify this only occurs on M1 Mac, the intel version doesn't seem to have this problem. JDK 17 openjdk version "17.0.1" 2021-10-19 OpenJDK Runtime Env

How to update a JSON array in a Java

I have a JSON file name abc.json Once I opened this file there is data like in square brackets. [{ "1" : "xxx", "20" : "ppp", "25" : "hhh" }] Here in this keys

Conflicting enum values java

I have 2 enums defined as below in 2 separate files: MyErrorCodes.java @Getter public enum MyErrorCodes implements ErrorCode { ERROR1(90, 1, 01), ERROR2

Is it possible that the changes made by a transactional method are visible in database before the transactional method ends

Two Spring boot (spring data jpa) Application A1 and Aplication A2 both read/write to a table named T1. T1 -> ID, data1, isDeleted columns My requirement is

How to use Mono<Boolean> in if else conditional statement?

I am using Flux<Document> in reactive, so as to make my Rest Service reactive. I am returning ResponseEntity<Flux<Document>> as response to my

Failed to connect Azure servicebus topic using JMS - Java

I followed steps as mentioned in Azure ServiceBus JMS Sample with below properties spring.jms.servicebus.connection-string=Endpoint=sb://test-dt.servicebus.wind