Category "spring-boot"

Retrieve exchange token

Working on an Azure AD-based authentication using OAuth2 and its On-Behalf-Of authentication flow. I am wondering how to actually check the token comparison bet

spring boot cloud eurka windows 10 eurkea returns host.docker.internal for client host name after latest docker upgrade

Spring Boot Cloud Disovery Question, Problem with Eureka hostname after docker upgrade on windows 10. (Note: docker is not hosting spring services, just maria

assertj recursive comparison ignoring regex failing after upgrade from 3.18.1 to 3.21.0

I have updated my springboot , along with that my assertj also seems to have upgraded. Now the test which was initially working in the older version is failing.

The dependencies in the application context form a cycle

The dependencies of some of the beans in the application context form a cycle: authController defined in file [...\AuthController.class] ↓ user

How do I fill in the input type= "time" field in Thymeleaf?

The Spring-Boot + Thymeleaf project does not fill in the input type= "time" field When opening the html form. That's how it works: <input type="time" class="

SSlconfiguration exception on finagle upgrade

I recently upgraded to finagle-core 22.4.0 from 21.4.0 and see this while loading integration tests in the application. I use wiremock-standalone version 2.27.2

JPA CriteriaBuilder ManyToOne and null values

I'm trying to create a Specification for filtering a table. This table has 2 @ManyToOne relationships (that can be null) and I'd like to apply the filter inside

Hibernate PessimisticLockingFailureException Occurring at a particular time everyday

I have a Spring Boot application and hibernate exception comes every day at a particular time at night. The exception is : could not execute statement; SQL [n/a

Dynamically change data source connection at runtime in Spring Boot

I have a spring-boot application with one database. Now I would like to integrate the possibility to copy some data from this database to another database. The

eclipse is not using application.yml

application.yml server: port: 9001 application.properties server.port= 9001 code works when I use .properties file but when I am using .yml file no propert

@Size annotation doesn't seem to work for my class

I have a Spring Boot Controller with an endpoint that accepts the following Configuration class (as json). The class has the param maxIterations and has a @Size

No qualifying bean of type 'org.springframework.kafka.core.ProducerFactory<java.lang.Object, java.lang.Object>'

I use this kafka configuration with spring cloud and spring boot 2.6.6: @Configuration @RefreshScope public class KafkaProducerConfig { @Bean(name = "nativeP

@SpringBootTest vs @ContextConfiguration vs @Import in Spring Boot Unit Test

I'm working on a Spring Boot project. I'm writing a Unit Test code based on TDD which is a little bit difficult. @SpringBootTest loaded all beans, which led to

Reason: The elements were left unbound

How can I load List of objects from configuration yml file in java springboot application? I already tried several sources: configuration-properties-in-spring

Injection problem in Spring Boot Test: "messageConverters must not be empty"

I have a strange problem with a Spring Boot Test. The test itself is empty, but it does not even manage to start the application. I get an error "Failed to load

I want to enable logging before running

How can I use Spring boot's logging system before running SpringApplication::run? By the way, I'm using logback and lombok. @slf4j @SpringBootApplication public

Cannot resolve method 'equals(long)'

I'm working on a spring boot application. However in my service impl class I'm getting a "Cannot resolve method 'equals(long)' when I try to use the equals() me

How to display list of questions fetched from database into HTML using Ajax and JavaScript?

I am working on school management system and using Spring Boot framework. I want to display all questions list when student click on start test button and would

Spring Boot Admin : java.net.UnknownHostException: Failed to resolve 'SAURABH-PC.mshome.net' after 3 queries

I had executed spring boot admin with two micro-service and eureka server last time. that time it executed but this time it is giving this error and showing in

@RefereshScope in Spring config server

As per the documentation whenever the bean in RefereshScope and the actuator end-point refresh called the bean got refreshed. Questions : Bean refresh means spr