Category "spring"

NoClassDefFoundError on org.springframework.jms.listener.DefaultMessageListenerContainer on start Application

I have big Gradle project. When i ruunng application gradlew - bootRun or run Debug on InteljIdea I got exceptions java.lang.NoClassDefFoundError: org/springfr

Write the same data with different file names using single Item writer using Spring Batch

I have a Spring Batch FlatFileItemWriter which writes data to a specific location with a file name(let's say A.txt for example). Now I need the same file to be

How to show sql Queries in console in springboot azure (Springboot + Azure Cosmos)

i am using SpringBoot with azurecosmos db i want to see the query for below repository code. findByFirstNameAndLastName(String firstName,String lastName);

Deployment issue on Heroku : zuul + eureka + microservices

Thanks for taking the time to read my post. My issue is as such. I have 2 microservices (auth-service and image-service) deployed on Heroku, as well as a server

Spring Boot /actuator returns 404 not found

I am using spring boot 2.1.4.RELEASE and currently trying to access http://localhost:8080/actuator but i am getting 404 not found. I am not sure what am i doing

Spring Cloud Gateway for composite API calls?

I am starting to build a Microservice API Gateway, and I am considering Spring Cloud to help me with the routing. But some calls to the Gateway API will need mu

How to configure Spring-Security AntPathRequestMatcher to case insensitive in XML configuration

We recently upgraded Spring-Security from 3.X to 5.6. Most of the issues we could iron out however one thing proves difficult. The problem was caused by a chang

How to make DataJpaTest flush save automatically?

I have an Employee entity with the following column: @Entity class Employee { @Column(name = "first_name", length = 14) private String firstName; and I hav

java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon?

I am getting exception: FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing d

Merge logging config of Spring boot and Logback

I have a following situation: A spring boot app using logback and several logging properties configured already in application.yml I would like to add other con

403 Error when sending post request to external API

I have an Angular App that is used to compile a java program, I am using Jdoodle API for compilation, we send requests to Jdoodle and then get a response back,

Spring Boot Application faild to start in intellij idea showing exception

I am trying to run application in Intellij Idea, but i am getting this error.... org.springframework.beans.factory.BeanCreationException: Error creating bean w

How to know the replica count of a Spring Boot application in Kubernetes

I have a Spring Boot 2.2.x backend deployed in kubernetes. I want to split a workload in this backend by the number of replicas of this application. If I have o

springdoc-openapi-ui swagger 3 change API description

I am new to String and Swagger 3. How can I change the default API description i.e. OpenAPI definition in Swagger springdoc-openapi-ui swagger 3 Also version,

External properties file in spring

I have a java,spring and not spring boot command line program with maven , which when i build a jar with all dependencies using maven-assembly-plugin , it inclu

springdoc-openapi-ui swagger 3 change API description

I am new to String and Swagger 3. How can I change the default API description i.e. OpenAPI definition in Swagger springdoc-openapi-ui swagger 3 Also version,

Transaction rollback when @Async method fails

I am trying to read about Transaction but I cannot understand how would I rollback a async method call, is it even possible to do so. I am facing an issue wher

How to use MongoAuditting with MongoTemplate?

i'm trying to upsert using MongoTemplate. but auditting does not work.(@CreatedDate, @ModifiedDate fields didn't save) how to enable auditing with MongoTemplate

Problem with Google Cloud Pub/Sub API and Spring boot application

I write spring boot application for subscribing Google cloud Pub/Sub topic for this I use Google's tutorial, but when I run application I have get this error

Mockito mock Java @Value with spring boot

Hi I have this simple code for my Spring Boot Project: @Component public class UserRowMapper implements RowMapper<User> { @Value("${bug.value}") p