Category "spring"

return Mono.error inside Map Spring Webflux

For Matching condition, return Mono.error from code , but gives compilation error. I commented out //return Mono.error(new RuntimeException("User Phone Exists a

spring boot dynamic scheduling with cron expression defined by the user

I want to send messages on different dates so I'm going to use java scheduler and dynamic cron expression but the problem is that user can send multiple messag

Hibernate + spring multi tenancy wrong schema selected

I’m using Jhipster (Gradle + React) for one of my project, and recently, I want to add Multi-tenancy support to the whole application (tenant will be the

Kafka Consumer - Point to specific offset in Spring boot Kafka

I'm trying to seek the offset to some specific offset. It seems I need to use seekToTimestamp and there is no seekToOffset or something. I've research a lot but

How to use limit and skip in spring data mongodb repository?

I want query sublist in mongo collections using Spring Data MongoDB. My Code is like public interface SomeRepo extends MongoRepository<SomeDoc, String> {

Spring OAuth2 name always null

New to OAuth2 and Spring framework. Have followed two introduction guides to it so far (for example this one) and the OAuth2User object (org.springframework.sec

how does singleton bean handle dynamic index

I am working spring data elastic search. Based on different header in the request, I create @RequestScope object IndexConfig to hold different set of indexes. I

how does singleton bean handle dynamic index

I am working spring data elastic search. Based on different header in the request, I create @RequestScope object IndexConfig to hold different set of indexes. I

Test verifications on embedded Spring LDAP server

we are using the default embedded ldap server in spring for our integration tests and configured it as follows: spring: ldap: embedded: base-dn: dc=

Safari Browsers not loading videos or audio with wav file type

I have been digging into a bug with our website where videos and wav type audio files are not loading/showing up when viewed through the Safari browser. Instead

Can a custom serializer/deserializer be a Spring bean?

I have a field in a POJO which needs to be encrypted before being serialized and, similarly, decrypted upon deserialization. The issue is that a cryptor is a Sp

DB default column value null while saving with Spring Data JPA

I have a JPA entity with the following fields: @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "modified_by_user_id") private User modifiedByUser; @Conve

Logback log to different files from the same package

I want to log into two different files, historic.log and applicative.log, from the same package that is com.authenticationservice.user.UserRequest. In the histo

Spring: @RequestScope - annotated method does not get called

In the application I would like to create a request-scoped bean (annotated with @RequestScope) that would represent a user of the application (for authenticatio

MongoAutoConfiguration does not create MongoClient bean

I have just read Spring Boot configuration with Morphia? and I am trying to implement it like this. But I always get Field mongoClient in MorphiaAutoConfigurati

MongoAutoConfiguration does not create MongoClient bean

I have just read Spring Boot configuration with Morphia? and I am trying to implement it like this. But I always get Field mongoClient in MorphiaAutoConfigurati

Spring MVC with HATEOAS

I use Spring MVC (no Spring Boot) with HATEOAS in order to get HAL-FORMS with Affordance response like this: "_links": { "index": { "hre

How to mock bean with @PostConstruct method

I need to mock some class that contains @PostConstruct method, but I get NullPointerException inside @PostConstruct method. My code looks like the following: @S

Tomcat static content path security with Spring

I'm trying to setup static content serving on my Tomcat 9 server So I specified it inside server.xml <Host name="${serverhost}" appBase="webapps" unpackWARs=

Update indexes mongodb using Spring

Does someone know what Spring application properties need to be specified so that the index is overwritten (if already been created) with new parameters. For ex