Category "spring"

Hibernate XML Entity Mapping

I have simple definition of my entities, but what i do wrong, because i can not get any entity UserInfo and receive only error (could not load an entity: [UserI

spring quartz does not run

All libraries and settings are in progress, but spring quartz does not run. QRTZ_LOCKS, QRTZ_ in DBThe SCHEDULER_STATE table contains data, but the Trigger tabl

OAuth2 with Google and Spring Boot - I can't log out

I've been trying to get a successful Oauth2 login with Google and Spring Boot for a while now. This only works partially. Why partly - because I can't manage th

org.eclipse.jgit.api.errors.RefNotFoundException: Ref main cannot be resolved - with Spring Cloud Config Server

I am again extending my question: Caused by: org.eclipse.jgit.api.errors.RefNotFoundException: Ref master cannot be resolved here again: I am using Spring Boot

Map database record to entity without knowing its id

Basically I have the system where there is entity called Dictionary, where all dictionary entries are stored (like countries in example below), these entries ar

java.lang.NoClassDefFoundError: Could not initialize class org.springframework.web.reactive.function.client.DefaultExchangeStrategiesBuilder

I am trying to use spring WebClient wc = WebClient.create(); in a non-Spring application, but it looks like DefaultExchangeStrategiesBuilder.DEFAULT_EXCHANGE_ST

Issue :: Microsoft Cognitive Services :: client-sdk :: Azure

I am trying to use Azure cognitive services and trying to convert "Text To Speech". I am able to convert the Text to Speech successfully on my local machine. Th

Spring 2.6.7: Failed to configure a DataSource: 'url' attribute

I have created a new Spring Starter Project and I specified in application.properties the db settings: spring.jpa.hibernate.ddl-auto=update spring.datasource.dr

How use projections in spring-data-jpa?

I need to get all the information about the ticket in one request, also the name, author, and year of the book. I have implemented this : I create interface Tic

UnsupportedPointcutPrimitiveException: Pointcut expression 'getEncryptedValue()' contains unsupported pointcut primitive 'get'

I was using spring-boot-starter-parent 2.0.3-RELEASE, using pointcut primitive 'get' in my aspect like below. @Pointcut("get(* *) && @annotation(com.tes

Spring boot addFlashAttribute not displaying message in HTML

I've been searching here and online how to use addFlashAttribute in the best way and it's not working for me no matter what I do. I have a Student model which I

How can generate a swagger from my spring boot application?

I have created a web rest API using Spring boot and I would like to generate a swagger page with the APIs documentation. How can I do that?

Spring environment variable values computing

Can I somehow use environment variable to set a properties value, but using computing, something like this: test2: ${TEST+1:2} test: ${TEST:1} As you can see

ConcurrentModificationException in Spring app o

I am trying to run a method to add a score to a player and also add the winner of the match to a list of finalists The code runs fine for adding the scores, but

Thymeleaf can't find templates

I have a Spring Boot Thymeleaf Java project that works perfectly in my local git. Thing is, I tried to clone this same project from my GitHub repository and now

Error while triggering quartz job in spring boot, kubernetes

I'm using Quartz Scheduler in Spring Boot with Postgres as Database. It was working fine in local enivornment with both dev and prod profile, but once we deploy

how to add external file to maven package output jar during runtime?

I have a spring maven project. In that Project (root folder), I have folder called config which contains multiple folder like t1, t2, t3 etc, Inside of each fol

How to write Java that calls a package function? Making a slight change to working Java code

With the help provided in the response to my previous question: Invalid Index trying to call a simple Oracle PROCEDURE from Java I was able to call an Oracle pa

Got a java.lang.IllegalArgumentException when sending a Java object by the dynamic TCP/IP integration flow?

Gary Russell helped me some time ago with the following 'DynamicTcpServer' flow (see Building a TCP/IP server with SI's dynamic flow registration) having now a

Throwing java.lang.IllegalAccessException module java.base does not open java.util.concurrent when running Corretto on Java

I have 2 microservices: serviceBFF, serviceCore. Stack Spring Boot 2.6.6 Amazon Corretto 17 (Docker) OpenJDK 17 (local) Docker (latest) serviceBFF calls a REST