Category "spring-boot"

Axon Aggregate Identifier Type Converter

PROBLEM: In an aggregate-state Axon SpringBoot application @AggregateIdentifier is of type UUID and PostgreSQL database column is of type UUID. When persisted o

Unable to register MBean

I am writing integration tests for a spring-boot application, and I am using a base test class for common methods and all the other common stuff. Something like

Combine Pagination of Two Different Entities With different size

I'm working on a problem where i have to do pagination of two data lists. ex. psudo code int recordsPerPage = 100; // this is dynamic int currentPage = 1; // th

Filter a Flux with a HashSet cellected from another Flux

I have two flux coming from ReactiveMongoDB API: the first will gets the data of date1 the second one gets the data of date2 by the end i want to exclude elemen

How to use a gRPC interceptor to attach/update logging MDC in a Spring-Boot app

Problem I have a Spring-Boot application in which I am also starting a gRPC server/service. Both the servlet and gRPC code send requests to a common object to p

Java file outside of source root intelliJ

I have cloned a spring boot project from GitLab having multiple branches in IntelliJ. I checkout to the branch in which I want to work. But I am getting "Java f

Jaeger with spring boot is not working when both are deployed at kubernetes

I am trying to trace logs of my spring-boot-application with jaeger . Both spring-boot microservice and jaeger are running on kubernetes ( local set-up on docke

deploy spring boot rest application on wildfly10

I have a spring boot rest api which is developed on Java 1.8 and deployed on Wildfly 15. when I try to deploy it on wildfly 10 errors are reported and deploymen

deploy spring boot rest application on wildfly10

I have a spring boot rest api which is developed on Java 1.8 and deployed on Wildfly 15. when I try to deploy it on wildfly 10 errors are reported and deploymen

Access URITemplate or RequestLine value in Feign RequestInterceptor / RequestTemplate

I'm developing an app against a cloud application that has hard api rate limits in place. In order to have my team get a feeling for how close we are in regards

Jaeger with spring boot is not working when both are deployed at kubernetes

I am trying to trace logs of my spring-boot-application with jaeger . Both spring-boot microservice and jaeger are running on kubernetes ( local set-up on docke

How to get relationship data with spring boot rest api?

I'm building a REST API with Spring Boot to retrieve boat information. I'm using Spring Data Rest and Spring Data JPA. When I get the data from the API, I don't

Difference between @Mock, @MockBean and Mockito.mock()

When creating tests and mocking dependencies, what is the difference between these three approaches? @MockBean: @MockBean MyService myservice; @Mock: @Mock

Failed to get nested archive for entry BOOT-INF/lib for jar created with maven-shaded-plugin

I am using spring-boot-maven-plugin:2.1.0.RELEASE to package my main line application. This application has all common dependencies etc packaged In a separate

username parameter is empty in loadUserByUsername(String username) - spring boot

This is my UserDetailService: public class StockUserDetailService implements UserDetailsService { @Autowired private UserRepository userRepository;

Dynamic dropdowns using thymeleaf, spring boot

I have 3 dropdowns(one is populate with cities, one with agencies and one with services). If I select one city, the second dropdown should load the data(agencie

How to add scheduled job to all nodes in java springboot cluster?

We have two springboot servers. We use nginx so that the user request will be sent to one of the server node. Now we want to achieve that: After user inputs thr

Performance issue with upgrade of spring boot

We upgraded an spring boot app from 2.0.0.RELEASE to 2.5.5. We use spring integration with queues persisted in Postgresql. We expose API. The embedded server is

How to use math.max in thymeleaf to find maximum number?

While trying to use max function in thymeleaf I got OGNL expressionn everytime. I'm not even sure if we can use functions like max/min in thymeleaf. Tried to lo

scanBasePackages on SpringBootApplication breaks endpoints

I am using an external dependency in my SpringBootApplication. The main class is defined as @ConfigurationPropertiesScan @EnableConfigurationProperties @SpringB