Category "spring-boot"

org.springframework.beans.factory.UnsatisfiedDependencyException Spring JPA

i need help to solve this error here, for my college project. I created an online database and from there I tried to develop a service to be consumed later, the

Relying upon circular reference is discouraged and they are prohibited by default in spring boot apolication

I am getting below error message when I am running my spring boot application. Description: The dependencies of some of the beans in the application context fo

Spring boot version changes to 2.6.6 from 2.3.4.RELEASE

I have changed the spring boot version to 2.6.6 from 2.3.4.RELEASE because of security vulnerabilities. My application's deployment is failing. In pom.xml I hav

Spring Boot Slf4j change log timestamp to use UTC timezone

Spring boot app with default logger settings and using lombok's @Slf4j Prints logs like {"timestamp":"2020-02-26T11:25:57.485-05:00" ..........} Time shown 11:

Missing dependency on EmbeddedKafka on integration test with groovy and spock

I've been trying to create an integration test using the embeddedKafka, but I'm getting problem of missing dependency when trying to run it, this is the error:

Which is a better approach to persist the spring state machine context or restore the state machine using the state enum on entity object?

I am new to spring state machine and trying to understand which is a better approach whether to persist the state context in a database or to restore the state

springboot 2.6.5 + springcloud 2021.0.1 start failed with external tomcat but succeed in embeded tomcat

originally I used springboot 2.4.9 + springcloud 2020.0.4 which worked fine with external tomacat but for springboot 2.6.5 + springcloud 2021.0.1, it starts fai

How to create mulitple instances of RabbitTemplate in Spring Boot?

I have a system that is currently using SimpleMessageConverter to send messages to multiple systems. Now I want to start using Jackson2JsonMessageConverter for

Does a simple REST project in Spring Boot use the MVC principle?

I need to create a simple project that uses the Model-View-Controller principle and a MySQL database. And I want to use Spring Boot with Spring MVC and Spring D

com.fasterxml.jackson.databind.exc.InvalidDefinitionException for some REST operations on User entity

I have a few entities: User, Role, Privilege. And for all three entities, I have three operations which are then exposed as REST api. findOne(), findAll(), and

com.fasterxml.jackson.databind.exc.InvalidDefinitionException for some REST operations on User entity

I have a few entities: User, Role, Privilege. And for all three entities, I have three operations which are then exposed as REST api. findOne(), findAll(), and

@TestPropertySource is not helping to fetch configuration property values

In the following test code snippet, values of number_of_days.last and number_of_months.plan are not getting fetched from the configuration file.Please check and

Spring Boot JMS MappingJackson2MessageConverter cannot find `_type` field even though it exists

I'm using Spring boot to receive JMS message and cURL to send it. Here's the Spring config: @Bean public MessageConverter jsonJmsMessageConverter() { Mapp

Spring-boot : Set Timeout on REST @ Server Side

Spring-boot application deploys on IBM Liberty Server. Though calling client can set a timeout on the request , I want a timeout to be set on Server side for

Postman is returning a 404 error on my Spring Boot API

I've built a spring boot rest api. However, when I try to test it in Postman, I am getting a 404 error. I have linked the code below. Please note that there

How to extract response header & status code from Spring 5 WebClient ClientResponse

I am new to Spring Reactive framework & trying to convert Springboot 1.5.x code into Springboot 2.0. I need to return response header after some filtering,

Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain

I have a spring boot project here: https://github.com/jcasbin/jcasbin-springboot-plugin. I encountered the following error in Travis CI: shell 3.43s$ ./mvnw in

Error creating bean with name 'redisson' defined in class path resource in Spring boot

I am facing some issue while connecting Redis("Using Redisson") with spring boot. At aplication Start time show below error. "org.springframework.beans.factory

How can I disable HTTP TRACE in embedded untertow of a Spring boot application

My goal is to DISABLE HTTP TRACE method for my spring boot application, which is using embedded undertow. A working yaml change will be preferred, if not, cod

How to solve Spring swagger Ambiguous mapping?

In my spring controller class i have below two methods @GetMapping(value = "/published_messages", produces = MediaType.APPLICATION_JSON_VALUE) public Respo