Category "spring-boot"

spring boot not getting connected to RabbitMQ in AWS

I am trying to connect my Spring-Boot application to RabbitMQ which is hosted as a AWS service.I am getting the following exception when starting the applicatio

org.springframework.web.client.ResourceAccessException: I/O error on GET request for in Microservices

I am developing microservices code from the link : https://github.com/sivaprasadreddy/spring-boot-microservices-series. In this code base, I was successfully ab

Docker: Can't read class path resource from spring boot application

Reading a classpath resource as, try { final ClassPathResource classPathResource = new ClassPathResource(format("location%sGeoLite2-City.mmdb", Fil

Spring Boot Multiple Ports?

How can I have a spring boot web application running on multiple ports? for example 8080 and 80 how can I achive this?application.properties server.port=8080,

Spring RequestBody with either List<Object> or Object. Name for both are same "data"

I want to handle json request for List of Object and Object it self in the same Spring controller. Below is the exact example. Json Request for Single Object:

Is it possible to use data.sql without schema.sql

I want to initialise schema using spring.jpa.generate-ddl=true and then populate using data.sql. I tried it but it doesn't seem to work without schema.sql. Any

Spring Boot : CORS Issue

I am using Spring Boot version 2.0.2Release. Below is my security configuration @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity( prePostE

Meaning of Long in JPARepository?

What is Long here and what on basis do we configure this in JpaRepository? public interface FirstRepository extends JpaRepository<First, Long> { }

how to store as a blob the audio recoding from azure API SpeechSynthesizer and play it in angular

We are currently implementing a spring boot API that calls text to speech API SpeechSynthesizer. public PronunciationBlob callAzureToTransformTextToSpeech(Stri

How to override a property after importing few property files in application yml in springboot 2.4

I have two property files in yml application-common.yml with below content web-client: max-connections: 500 wait-for: time: 1s application.yml with below

Kafka authentication with Jaas config

I have set up my Kafka jaas config as an external bean in my spring boot application to read my configuration from my application.yaml file. But I am facing an

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